내용으로 건너뛰기
권남
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
springframework:springboot
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== SpringBoot ====== * [[http://projects.spring.io/spring-boot/|Spring Boot]] * [[http://start.spring.io/|Spring Initializr]] * [[http://www.baeldung.com/spring-boot|Learn Spring Boot | Baeldung]] * [[springframework:springboot:devtools|SpringBoot DevTools]] * [[springframework:springboot:properties|SpringBoot Properties]] * [[springframework:springboot:jpa|Spring Boot And JPA]] * [[springframework:springboot:mvc|SpringBoot and Spring MVC]] * [[springframework:springboot:json|SpringBoot and JSON]] * [[springframework:springboot:batch|SpringBoot와 SpringBatch]] * [[springframework:springboot:springboot_admin|SpringBoot Admin]] ===== Dependency Version Override ===== 의존 라이브러리의 버전을 다른 것으로 바꾸고자 한다면 property를 변경하면 된다. <code groovy> // 하이버네이트 버전 ext['hibernate.version'] = '5.2.14.Final' </code> * [[https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-dependencies/pom.xml|spring boot dependencies pom.xml]] 여기서 버전 프라퍼티 목록을 알 수 있다. ===== JRebel SpringBoot / Gradle ===== * [[https://www.javacodegeeks.com/2018/02/jrebel-gradle-spring-boot-app.html|JRebel for a Gradle Spring Boot App | Java Code Geeks - 2018]] ===== DataSource ===== * Default 말고 직접 ''DataSource'' 설정을 하고자 할경우에는 다음과 같이 한다. <code java> import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; @Bean @ConfigurationProperties(prefix = "my.datasource") public DataSource rubyDataSource() { return DataSourceBuilder.create().type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); } </code> * 위 예에서 설정값은 ''my.datasource.*''로 구성한다. [[java:database:hikaricp|HikariCP]] 등 다른 구현체를 사용할 수도 있다. ===== BootRun ===== ==== Debug Mode ==== <code groovy> bootRun { if (project.hasProperty("bootDebug")) { jvmArgs = ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"] } } // suspend=y는 JVM이 뜰 때 Remote Debugger가 접속될 때까지 기다린다. // 실행 후 바로 종료하는 명령행 애플리케이션의 경우 무조건 y </code> <code sh> # -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> ===== 참고 ===== * [[http://andromedarabbit.net/wp/spring-boot%ec%97%90%ec%84%9c-spring-framework-%eb%b2%84%ec%a0%84-%ec%a7%80%ec%a0%95%ed%95%98%ea%b8%b0/|Spring Boot에서 Spring Framework 버전 지정하기]] * [[http://www.infoq.com/presentations/spring-boot-devops|Spring Boot for DevOps]] * [[https://examples.javacodegeeks.com/enterprise-java/spring/boot/spring-boot-tutorial-beginners/|Spring Boot Tutorial for beginners]] * [[https://examples.javacodegeeks.com/enterprise-java/spring/boot/spring-boot-configuration-tutorial/|Spring Boot Configuration Tutorial]] * [[http://jojoldu.tistory.com/226|SpringBoot @MockBean, @SpyBean 소개]] * [[http://www.baeldung.com/spring-boot-shutdown|Shutdown a Spring Boot Application | Baeldung]] * [[http://www.baeldung.com/spring-boot-thin-jar|Thin JARs with Spring Boot | Baeldung]] * [[https://dzone.com/articles/graceful-shutdown-spring-boot-applications|Graceful Shutdown Spring Boot Applications - DZone Java]]
springframework/springboot.1536897955.txt.gz
· 마지막으로 수정됨: 2018/09/14 13:05 저자
kwon37xi
문서 도구
문서 보기
이전 판
역링크
맨 위로