일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- error
- Open Source
- AJAX
- maven
- git
- JDBC
- MySQL
- 설정
- 오픈소스
- spring
- Python
- SpringBoot
- MSSQL
- IntelliJ
- Docker
- ubuntu
- Thymeleaf
- Exception
- Tomcat
- JavaScript
- Spring Boot
- 문서
- PostgreSQL
- myBatis
- jpa
- Core Java
- oracle
- Source
- STS
- Eclipse
- Today
- Total
목록hermeswing log (709)
헤르메스 LIFE
개발환경 : Spring Boot 2.7.9 Database : H2-2.1.214 JDK : 11.0.18 x64 JPA DEBUG 23-03-11 00:39:202[http-nio-9090-exec-1] octopus.backend.v1.controller.CodeMController.save[55]: - tCodeMDto :: TCodeMDto(pCd=null, pCdNm=null, useYn=null, rmk=null) DEBUG 23-03-11 00:39:206[http-nio-9090-exec-1] octopus.backend.v1.service.CodeService.save[37]: - tCodeMDto :: TCodeMDto(pCd=null, pCdNm=null, useYn=null, rm..
요즘 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 Boot + JPA 기반 개발환경에서 @Entity를 사용하면 Embedded Tomcat 기동 시 자동으로 연결된 Database의 테이블을 생성하거나, 수정할 수 있습니다. 단점은 테이블의 컬럼 순서가 원하는 순서로 생성되지 않습니다. ( PK, 알파벳 순입니다. ) 테이블 사용에는 아무런..
https://runebook.dev/ko/docs/postgresql/-index- PostgreSQL 15.0 한국어 runebook.dev 테이블 생성 CREATE TABLE [IF NOT EXISTS] table_name ( column1 datatype(length) column_contraint, column2 datatype(length) column_contraint, column3 datatype(length) column_contraint, table_constraints ); DROP TABLE [IF EXISTS] table_name [CASCADE | RESTRICT]; 샘플 DROP TABLE IF EXISTS `sample`; CREATE TABLE IF NOT EXISTS `..

AWS에 외부 접속 가능한 Database 를 설정해 봤습니다. 모자이크가 많습니다. 소문에 이런 정보 오픈되면, 과금이 된다고 합니다. +_+;; https://hermeslog.tistory.com/671 AWS 서버 구축하기 #1 - AWS 가입 공부를 위해 AWS 에 가입 해 봤습니다. AWS는 12개월동안 프리티아 계정(무료계정) 사용이 가능합니다. https://aws.amazon.com/ko/free 무료 클라우드 컴퓨팅 서비스 - AWS 프리 티어 Q: AWS 프리 티어란 무엇 hermeslog.tistory.com https://hermeslog.tistory.com/672 AWS 서버 구축하기 #2 - AWS 서버 생성 공부를 위해 AWS 에 가입 해 봤습니다. https://herme..

제가 궁금한 모든 예제. 감사합니다. 출처 : https://medium.com/@odysseymoon/spring-data-jpa%EC%97%90%EC%84%9C-groupby-%EC%B2%98%EB%A6%AC%ED%95%98%EA%B8%B0-82cddc6e5d4a Spring Data JPA에서 GroupBy 처리하기 Spring Data JPA에서는 GroupBy 를 사용하려면 어떻게 해야 할까요? Reference Doc 에서도 Group By 관련 키워드는 찾아보기 힘듭니다. Group By를 이용하려면 다른 방식을 적용해야 하는데요, Spring… medium.com Spring Data JPA에서는 GroupBy 를 사용하려면 어떻게 해야 할까요? Reference Doc 에서도 Group ..
Spring Boot의 버전에 따라 application properties 파일의 설정 경로가 약간 다르게 변했습니다. 확인 해봐야 합니다. yml 설정을 properties 설정으로 또는 properties 설정을 yml 설정으로 변경하는 Util 페이지 https://env.simplestep.ca/ Environment Variable Generator env.simplestep.ca Spring Boot 2.1.5 버전 ( https://docs.spring.io/spring-boot/docs/2.1.5.RELEASE/reference/html/common-application-properties.html ) Appendix A. Common application properties Append..
일반적인 yml 설정 - show-sql: true 는 System.out 으로 출력하기 때문에 효율이 좋지 않습니다. application.yml # Server port server: port: 9090 servlet: context-path: / spring: datasource: url: jdbc:h2:tcp://localhost/~/test;DB_CLOSE_ON_EXIT=FALSE driver-class-name: org.h2.Driver # H2 Database username: sa password: jpa: show-sql: true # System.out 으로 출력. logging.level.org.hibernate.SQL=debug 로 대체합니다. hibernate: # create :..
개발환경 : Spring Boot 2.7.9 Database : H2-2.1.214 JDK : 11.0.18 x64 JPA Swagger 00:37:36.678 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@9b6e40 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_..
개발환경 : Spring Boot 2.7.9 Database : H2-2.1.214 JDK : 11.0.18 x64 JPA WARN 23-02-26 00:34:198[restartedMain] org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration.openEntityManagerInViewInterceptor[223]: - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view..

개발환경 : Spring Boot 2.7.9 Database : H2-2.1.214 JDK : 11.0.18 x64 JPA H2 Database 를 이용해서, User 라는 JPA Entity 를 생성하는 테스트를 하던 중 아래와 같은 오류가 발생했습니다. package octopus.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate...