문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot [2018/04/06 08:54] kwon37xi |
springframework:springboot [2018/11/29 12:30] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
+ | * [[springframework: | ||
- | ===== Dependency Version Override | + | ===== @EnableAutoConfiguration |
- | 의존 라이브러리의 버전을 다른 것으로 바꾸고자 한다면 property를 변경하면 된다. | + | * [[https:// |
- | < | + | * 특정 Auto Configuration 방지< |
- | // 하이버네이트 버전 | + | @EnableAutoConfiguration(exclude = { |
- | ext[' | + | |
+ | DataSourceTransactionManagerAutoConfiguration.class, | ||
+ | HibernateJpaAutoConfiguration.class}) | ||
</ | </ | ||
+ | * [[https:// | ||
- | | + | ===== JRebel SpringBoot / Gradle ===== |
+ | | ||
- | ===== With JPA ===== | + | ===== DataSource |
- | * 현재 Spring boot 버전에 [[http:// | + | * Default 말고 직접 '' |
- | * [[https:// | + | < |
- | * 해결책은 naming strategy를 직접 지정해 줄 것< | + | import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; |
- | // Hibernate 4 | + | @Bean |
- | spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy | + | @ConfigurationProperties(prefix |
- | // or | + | public DataSource rubyDataSource() { |
- | spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.DefaultNamingStrategy | + | |
- | + | } | |
- | // Hibernate 5 | + | |
- | spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | + | |
</ | </ | ||
+ | * 위 예에서 설정값은 '' | ||
- | ===== JRebel SpringBoot / Gradle ===== | + | ==== SpringApplicationRunListener |
- | * [[https://www.javacodegeeks.com/2018/ | + | * [[https://docs.spring.io/ |
+ | * SpringBoot 로딩중 이벤트를 받아 처리한다. | ||
- | ===== Date/Time Format ===== | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * 1.x와 2.x 에서 동일 결과를 낼 수 있는 방식 지정할 것. | ||
===== 참고 ===== | ===== 참고 ===== | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
- | * [[http:// | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// |