사용자 도구

사이트 도구


springframework:springboot

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
springframework:springboot [2018/07/17 16:39]
kwon37xi [With JPA]
springframework:springboot [2018/07/18 10:58]
kwon37xi
줄 5: 줄 5:
   * [[springframework:springboot:devtools|SpringBoot DevTools]]   * [[springframework:springboot:devtools|SpringBoot DevTools]]
   * [[springframework:springboot:properties|SpringBoot Properties]]   * [[springframework:springboot:properties|SpringBoot Properties]]
 +  * [[springframework:springboot:jpa|Spring Boot And JPA]]
  
 ===== Dependency Version Override ===== ===== Dependency Version Override =====
줄 14: 줄 15:
  
   * [[https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-dependencies/pom.xml|spring boot dependencies pom.xml]] 여기서 버전 프라퍼티 목록을 알 수 있다.   * [[https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-dependencies/pom.xml|spring boot dependencies pom.xml]] 여기서 버전 프라퍼티 목록을 알 수 있다.
- 
-===== With JPA ===== 
-  * 현재 Spring boot 버전에 [[http://stackoverflow.com/questions/25283198/spring-boot-jpa-column-name-annotation-ignored|@Column(name="")이 안먹는 버그]]가 존재하는 것으로 보임. 
-  * 그 외에 버그가 해결된 버전에서도 기본적으로 Spring 자체의 Naming Strategy를 사용하는데 이게 자동으로 이름을 변환해버리다 보니 의도에 맞지 않게 작동할 수 있음. 차라리 Hibernate 기본을 사용하고 항상 Table, Column 이름을 명시해주는게 편하다. 
-  * [[https://github.com/spring-projects/spring-boot/issues/2129| @Column with name attribute not working property on entities]] 
-  * 해결책은 naming strategy를 직접 지정해 줄 것<code> 
-// Hibernate 4 
-spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy 
-// or 
-spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.DefaultNamingStrategy 
- 
-// Hibernate 5 
-spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl 
-spring.jpa.hibernate.naming.implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl 
-</code> 
  
 ===== JRebel SpringBoot / Gradle ===== ===== JRebel SpringBoot / Gradle =====
springframework/springboot.txt · 마지막으로 수정됨: 2022/10/26 10:14 저자 kwon37xi