문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot [2018/08/28 13:04] kwon37xi |
springframework:springboot [2018/09/28 12:17] kwon37xi [@EnableAutoConfiguration] |
||
---|---|---|---|
줄 9: | 줄 9: | ||
* [[springframework: | * [[springframework: | ||
* [[springframework: | * [[springframework: | ||
+ | * [[springframework: | ||
+ | |||
+ | ===== @EnableAutoConfiguration ===== | ||
+ | * [[https:// | ||
+ | * 특정 Auto Configuration 방지< | ||
+ | @EnableAutoConfiguration(exclude = { | ||
+ | DataSourceAutoConfiguration.class, | ||
+ | DataSourceTransactionManagerAutoConfiguration.class, | ||
+ | HibernateJpaAutoConfiguration.class}) | ||
+ | </ | ||
===== Dependency Version Override ===== | ===== Dependency Version Override ===== | ||
줄 52: | 줄 62: | ||
# -PbootDebug 프라퍼티를 지정하면 디버그 모드로 뜬다. | # -PbootDebug 프라퍼티를 지정하면 디버그 모드로 뜬다. | ||
./gradlew bootRun -PbootDebug | ./gradlew bootRun -PbootDebug | ||
+ | </ | ||
+ | |||
+ | ==== Application Arguments ==== | ||
+ | * [[https:// | ||
+ | <code groovy> | ||
+ | bootRun { | ||
+ | if (project.hasProperty(' | ||
+ | args project.args.split(',' | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 위와 같이 설정하고, | ||
+ | |||
+ | <code sh> | ||
+ | ./gradlew bootRun -Pargs=param1, | ||
</ | </ | ||
===== 참고 ===== | ===== 참고 ===== |