Justin의 개발 로그
Multi SpringApplication 을 선택 처리하는 방법
프로그래밍/Java-Spring 2021. 2. 26. 09:52

my-parent |__ my-main (depends on my-other module) |__ my-other @SpringBootApplication public class MyMainApp ... { ... } @SpringBootApplication @ConditionalOnProperty(name = "my.other.active", havingValue = "true", matchIfMissing = false) public class MyOtherApp ... { ... } 실행할 어플리케이션 선택 방법 -Dmy.other.active=true -Dspring.profiles.active=$profile application yaml을 분리 - 내부 실행 배치 - 외부 DB 접속하는 배치는..