Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- VirtualBox
- Windows 10
- port
- 줄바꿈 문자
- web.xml
- JavaScript
- 단축키
- tomcat
- vscode
- xargs
- IntelliJ
- Source
- context
- import
- Mac
- Windows
- GIT
- grep
- plugin
- ssh
- bash
- 네트워크
- maVen
- Eclipse
- profile
- netsh
- Quartz
- find
- lsof
- resource
Archives
- Today
- Total
develog
[spring boot] multiple properties file 본문
ConfA.java
@Component
@PropertySource("classpath:properties/confA.properties")
public class ConfA {
@Value("${aa.bb}")
public String value;
}
ConfB.java
@Component
@PropertySource("classpath:properties/confB.properties")
public class ConfB {
@Value("${cc.dd}")
public String value;
}
properties files
resources
properties
confA.properties
confB.properties
'Dev > Spring Boot' 카테고리의 다른 글
[spring boot] 초기화 코드 (0) | 2020.11.01 |
---|---|
[spring boot 2.3] javax.validation dependency (0) | 2020.10.25 |
Spring Boot jar, docker build (0) | 2020.08.06 |
[spring boot] static file read (0) | 2020.02.13 |
[spring boot] @SpringBootTest, MockMvc (0) | 2020.02.07 |
Comments