사용자 도구

사이트 도구


springframework:springboot

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
springframework:springboot [2018/08/28 13:04]
kwon37xi
springframework:springboot [2018/09/28 12:17]
kwon37xi [SpringBoot]
줄 9: 줄 9:
   * [[springframework:springboot:json|SpringBoot and JSON]]   * [[springframework:springboot:json|SpringBoot and JSON]]
   * [[springframework:springboot:batch|SpringBoot와 SpringBatch]]   * [[springframework:springboot:batch|SpringBoot와 SpringBatch]]
 +  * [[springframework:springboot:springboot_admin|SpringBoot Admin]]
 +
 +===== @EnableAutoConfiguration =====
 +  * [[https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html|@EnableAutoConfiguration]]
 +  * 특정 Auto Configuration 방지<code java>
 +@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
 +</code>
  
 ===== Dependency Version Override ===== ===== Dependency Version Override =====
줄 52: 줄 59:
 # -PbootDebug 프라퍼티를 지정하면 디버그 모드로 뜬다. # -PbootDebug 프라퍼티를 지정하면 디버그 모드로 뜬다.
 ./gradlew bootRun -PbootDebug ./gradlew bootRun -PbootDebug
 +</code>
 +
 +==== Application Arguments ====
 +  * [[https://www.baeldung.com/spring-boot-command-line-arguments|Command-line Arguments in Spring Boot | Baeldung]]
 +<code groovy>
 +bootRun {
 +    if (project.hasProperty('args')) {
 +        args project.args.split(',')
 +    }
 +}
 +</code>
 +
 +위와 같이 설정하고, 아래와 같은 형태로 실행한다.
 +
 +<code sh>
 +./gradlew bootRun -Pargs=param1,param2,...
 </code> </code>
 ===== 참고 ===== ===== 참고 =====
springframework/springboot.txt · 마지막으로 수정됨: 2022/10/26 10:14 저자 kwon37xi