일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- IntelliJ
- Docker
- 문서
- oracle
- error
- Source
- jpa
- 설정
- JDBC
- MySQL
- Exception
- Eclipse
- Open Source
- maven
- Python
- SpringBoot
- ubuntu
- spring
- Tomcat
- JavaScript
- PostgreSQL
- Spring Boot
- MSSQL
- 오픈소스
- myBatis
- AJAX
- Thymeleaf
- Core Java
- git
- STS
- Today
- Total
목록Spring Boot Framework (61)
헤르메스 LIFE
Spring Boot 개발 시 logbak-local 설정이 적용이 안되서 찾아 보니 아래와 같이 설정해야 한다고 합니다. 개발환경Tools : STS 4.22.1.RELEASEJDK : zulu11.72.19-jdk11.0.23Framework : Spring Boot 2.7.18Logging : Logback 1.2.12`-Dspring.profiles.active=local` 설정 application.yml# Spring 설정spring: application: # Application 이름 name: ezpus profiles: active: local # `-Dspring.profiles.active=local` Default 설정logging: config: class..

개발환경Tools : STS 4.22.1.RELEASEJDK : zulu11.72.19-jdk11.0.23Framework : Spring Boot 2.7.18Database : PostgreSQL 16.3Cache NoSQL : Redis 7.2.5Build : Gradle프로젝트 생성Dependencies 선택Finish개발 소스https://github.com/hermeswing/SpringBootNRedis GitHub - hermeswing/SpringBootNRedisContribute to hermeswing/SpringBootNRedis development by creating an account on GitHub.github.comSpring-boot + Redis applicatio..
개발환경Springboot Mybatis JDK 11.x SELECT id, name FROM users WHERE id = #{id} 이와 같은 간단한 쿼리 실행 시 Map 에 담기는 값은 Database 마다 다릅니다.Oracle, Tibero 는 key 가 대문자로 담기게 됩니다.List> userList = mapper.selectUserRequest();for(int i = 0; i MS-SQL 은 쿼리 Alias 로 key 가 생성됩니다.List> userList = mapper.selectUserRequest();for(int i = 0; i PostgreSQL 은 key 소문자로 담기게 됩니다.List> userList = mapper.selectUserReques..
MyBatis 개발환경에서 쿼리를 추출할 수 있는 방법을 찾아봤습니다.소스를 오픈해주신 분이 계셔서, 쉽게 테스트 할 수 있었습니다. 소스 출처https://velog.io/@yuna706/%EB%A7%88%EC%9D%B4%EB%B0%94%ED%8B%B0%EC%8A%A4-%ED%8C%8C%EB%9D%BC%EB%AF%B8%ED%84%B0-%EC%BD%98%EC%86%94-%EC%B6%9C%EB%A0%A5-%EA%B8%B0%EB%8A%A5-%EA%B5%AC%ED%98%84-spring-boot-interceptor 마이바티스 파라미터 콘솔 출력 기능 구현 - spring boot interceptormybatis parameter console output기존의 log4j를 걷어내고 spring boot +..

아래와 같은 환경을 구축하기 위해 Microservice 가 1개 이상 있어야 합니다. Spring Cloud 아키텍처 관계도 출처 : https://spring.io/cloud 개발환경 JDK : Zulu JDK 17.0.10 SpringBoot 3.2.3 SpringBoot Eureka Client ( 현재 최신 버전 :4.1.0 ) Build Tools : Gradle 1. 프로젝트 생성 2. Eureka Gateway - 간단한 Application 입니다. build.gradle plugins { id 'java' id 'org.springframework.boot' version '3.2.4' id 'io.spring.dependency-management' version '1.1.4' } g..

https://github.com/hermeswing/EurekaClient GitHub - hermeswing/EurekaClient Contribute to hermeswing/EurekaClient development by creating an account on GitHub. github.com 개발환경 JDK : Zulu JDK 17.0.10 SpringBoot 3.2.3 SpringBoot Eureka Client ( 현재 최신 버전 :4.1.0 ) Build Tools : Gradle 1. 프로젝트 생성 2. Eureka Client - 아래의 소스가 전부 입니다. ( 의외로 엄청 간단합니다. ) build.gradle plugins { id 'java' id 'org.springframe..

https://github.com/hermeswing/EureakServer GitHub - hermeswing/EureakServer: Spring Eureka Server Spring Eureka Server. Contribute to hermeswing/EureakServer development by creating an account on GitHub. github.com 개발환경 JDK : Zulu JDK 17.0.10 SpringBoot 3.2.3 SpringBoot Eureka Server ( 현재 최신 버전 :4.1.0 ) Build Tools : Gradle 1. 프로젝트 생성 2. Eureka Server - 아래의 소스가 전부 입니다. ( 의외로 엄청 간단합니다. ) build.gr..
p6spy 설정 후 쿼리는 잘 찍히는데, 두 번씩 찍히는 문제가 생겼습니다. Connection ID 가 다르니.. 두 번찍히는게 분명합니다. 24-02-01 23:03:378 [http-nio-7000-exec-2] DEBUG org.hibernate.SQL.logStatement [ 144 line ] [ ThreadId-119 ] - insert into users (crt_dt, crt_id, mdf_dt, mdf_id, email, password, user_id, user_nm, user_role) values (?, ?, ?, ?, ?, ?, ?, ?, ?) 24-02-01 23:03:379 [http-nio-7000-exec-2] TRACE org.hibernate.type.descript..
JPA를 공부하다보니, JPA에서는 Logging 시 p6spy 이라는 걸 사용하는 방법도 있다고 합니다. SpringBoot 만을 사용할때에는 log4jdbc-log4j2를 주로 사용했는데, JPA를 보다보니 p6spy라는 것도 있네요. 참조가 필요합니다. // jpa query logging implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.1' src/main/resources/spy.properties driverlist=org.h2.Driver appender=com.p6spy.engine.spy.appender.Slf4JLogger logMessageFormat=com.p6spy.engine.spy.appender.M..
NativeQuery 를 이용해서 삭제했는데, 아래와 같은 오류가 발생했습니다. could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could not extract ResultSet CommentRepository.java package octopus.bbs.comment.repository; import java.util.List; import javax.persistence.Tuple; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.spri..