일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- Source
- AJAX
- Thymeleaf
- Python
- spring
- 문서
- error
- jpa
- myBatis
- JDBC
- SpringBoot
- git
- STS
- Open Source
- Core Java
- Docker
- ubuntu
- Spring Boot
- PostgreSQL
- maven
- MSSQL
- Eclipse
- MySQL
- IntelliJ
- 설정
- Tomcat
- JavaScript
- Exception
- 오픈소스
- oracle
- Today
- Total
목록hermeswing log (709)
헤르메스 LIFE
개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 lombok devtools postgresql Spring Data JPA Code 테이블에 save 하던 중 아래와 같은 오류가 발생했습니다. 특별한 Exception 도 발생하지 않고 commit 할 수 없다라는 경고 메시지만 보여집니다. WARN 23-03-31 00:43:896[http-nio-9090-exec-1] org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.logException[208]: - Resolved [org.springframework.transaction.Trans..

개발환경Spring Boot 2.7.9H2 2.1.214p6spy 1.8.1slf4j 1.7.36lombokdevtoolspostgresql참고로Swagger 의 버전별 call URL이 다릅니다.2.x 버전 : http://localhost:9090/swagger-ui.html3.x 버전 : http://localhost:9090/swagger-ui/index.htmlSwagger2 2.9.2 버전 설정build.gradle // Default : 2.0.0.RELEASE //implementation 'org.springframework.plugin:spring-plugin-core' implementation 'org.springframework.pl..
요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql INFO 23-03-24 23:26:689[restartedMain] springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping.initHandlerMethods[69]: - Mapped URL path [/v2/api-do..
요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql Spring Domain Class 중 org.springframework.data.domain.Sort Class가 있습니다. Spring Data JPA를 사용할 경우 Pageable 인터페이스와 Sort 정보를 파라메터로 전달할 수 있습니다. Sort 객체를 생성하는 방법 /* Sort.by(정렬방법..
개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql JPA 아래와 같은 오류가 발생했습니다. INFO 23-03-18 11:39:785[http-nio-9090-exec-1] octopus.advice.ExceptionAdvice.dataAccessException[72]: - [ExceptionAdvice >> dataAccessException] result :: {errCode=-1, errMsg=Null value was assigned to a property [class octopus.entity.TCodeD.numOpt1] of primitive type sette..
개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql JPA 아래의 오류는 JPA 개발환경에서 조회 후 값이 없을 경우 발생하는 오류입니다. WARN 23-03-18 11:23:622[http-nio-9090-exec-1] org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.logException[208]: - Resolved [java.util.NoSuchElementException: No value present] JPA 에서는 아래와 같이 해결할 수 있습니다. @Tra..
요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql JPA를 공부하면서 일반적인 RDB의 관점에서 이해가 안되는 점이 있었습니다. 첫째. Save 시 Select 후 Insert 하는 부분 https://hermeslog.tistory.com/693 [JPA] JPA Data Save 시 Select 쿼리가 먼저 실행 된다. 요즘 JPA를 공부하고 있습니다..
요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql save 시 select 를 수행하는 이유는 아래의 링크를 참조하면 될 것 같습니다. 1. save 를 실행하면 select를 수행됩니다. 2. select 후 있으면 update, 없으면 insert 를 수행 합니다. 기본적으로 있으면 중복 메시지를 보여주는게 맞습니다. 그래서 중복메시지를 보여주도록 수..
요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql jpa로 개발하던 중 생성일이 초기화 되는 현상이 발생했습니다. @Column(updatable = false) Update 시에는 처리 되지 않는 옵션이 있었네요. package octopus.entity; import java.io.Serializable; import java.time.LocalDat..

요즘 JPA를 공부하고 있습니다. MyBatis 만 하다가, 개인적으로 공부를 진행하고 있습니다. 하다보니 막히고, 이해가 안되는 부분이 많네요. 그때마다 검색과 삽질로 해결하고 있습니다. 여기 그 삽질의 자취를 남겨봅니다. 개발환경 Spring Boot 2.7.9 H2 2.1.214 p6spy 1.8.1 slf4j 1.7.36 swagger2 2.6.1 lombok devtools postgresql BaseEntity를 상속받은 Entity 를 save() 해도 @CreateDate, @LastModifiedDate 객체가 생성되지 않습니다. 이럴때 찾아봐야 하는 내용은 @EnableJpaAuditing 입니다. package octopus.entity; import java.io.Serializab..