๋ฐ์ํ
์คํ๋ง์์ ์ ํ๋ฆฌ์ผ์ด์ ์ ์ค์ ํ ๊ฐ๋ค์ ๋ฐ์ธ๋ฉํ๋ ค๊ณ ์
์ฌ์ฉํ๋ ค๋ฉด pom.xml์ ์ถ๊ฐํด์ค์ผ๋๋ค.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

Applicationํ์ผ์
@ConfigurationPropertiesScan
์ด๋ ธํ ์ด์ ์ถ๊ฐํ๊ณ
๋ณ์ ์ฌ์ฉํ ํ์ผ์๋ค๊ฐ
@ConfigurationProperties(prefix = "mqtt")
์ถ๊ฐํ๋ฉด

์ด๋ ๊ฒ ๋ณ์ ์ฐ๋ฉด ์๋์ผ๋ก ์ ํ๋ฆฌ์ผ์ด์ ์์๋ ๊ฐ์ด ๋งคํ๋๋ค.
์ฝ์๋ก ํ์ธํ๋ฉด

์ ๊ฐ์ ธ์ค๋๊ฒ์ ๋ณผ ์ ์๋ค.
๋ฐ์ํ
'๐๏ธ ๋ฐฑ์๋ > ๐Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| # ํ๋ก ํธ์๋์ ๋ฐฑ์๋์์ ๊ฐ๊ฐ ์๊ฐ ํฌ๋งท ์ฒ๋ฆฌํ๋ ์ด์ (Spring Boot + JS) (0) | 2025.05.12 |
|---|---|
| # JSP - iframe ์ธ๋ถ(๋ถ๋ชจ)์ ๋ณ์ ๋๊ธฐ๊ธฐ (0) | 2025.03.25 |
| # ์ฐจํธ๊ฐ ๋ง์๋ ์๋ ๋น ๋ฅด๊ฒ ์ฒ๋ฆฌํ๋ ๋ฐฉ๋ฒ (0) | 2025.02.26 |
| # Spring - MyBatis ๊ตฌ์กฐ (0) | 2025.02.17 |
| # FileInputStream - ํ์ผ ๋ค์ด๋ก๋ ์ฒ๋ฆฌ (0) | 2025.02.17 |