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
- 네트워크
- web.xml
- copy-dependencies
- 공통표준용어
- xargs
- netsh
- tomcat
- port
- JavaScript
- find
- GIT
- Eclipse
- Windows 10
- IntelliJ
- Windows
- Source
- Quartz
- VirtualBox
- resource
- maVen
- ssh
- lsof
- Mac
- 단축키
- grep
- context
- import
- profile
- DB 도메인
- bash
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