Notice
Recent Posts
Recent Comments
Link
«   2025/02   »
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
Tags
more
Archives
Today
Total
관리 메뉴

끄적끄적

[spring] properties 여러개 사용하기 본문

개발

[spring] properties 여러개 사용하기

으아아아앜 2019. 12. 24. 13:05
@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