끄적끄적
[spring] properties 여러개 사용하기 본문
@SpringBootApplication
@PropertySources({
@PropertySource("classpath:properties/private/database-config.properties"),
@PropertySource("classpath:properties/private/mail-config.properties"),
@PropertySource("classpath:properties/private/jwt-config.properties"),
@PropertySource("classpath:properties/pagination-config.properties"),
@PropertySource("classpath:properties/file-upload-config.properties")
})
public class PortfolioApplication {
public static void main(String[] args) {
SpringApplication.run(PortfolioApplication.class, args);
}
}
'개발' 카테고리의 다른 글
[spring] JPA properties 설정 (0) | 2019.12.26 |
---|---|
[spring] database 연결 테스트 코드 (0) | 2019.12.24 |
[database] 자주 쓰는 SQL (0) | 2019.12.24 |
[intelij] 인텔리제이 환경설정하기 (0) | 2019.12.24 |
[spring] @Valid 활용하기 (0) | 2019.12.23 |
Comments