![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FoSgDs%2FbtsnxB5pZfR%2FEfXIFjbVcf8UWJVQGKpjLk%2Fimg.png)
에러 내용 1) 발생 → @NotEmpty 어노테이션이 인식되지 않는다. 2) 원인 Validation in Spring Boot | Baeldung 스프링 공식문서에서 부트2.3 부터는 validation 을 지원하지 않는다. 직접 ingection을 해줘야 한다. [Starting with Boot 2.3, we also need to explicitly add the spring-boot-starter-validation dependency:] 3) 해결 build.gradle 파일 dependency 부분에 아래 코드를 추가하면 사용 가능 implementation 'org.springframework.boot:spring-boot-starter-validation'
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbMLm0N%2FbtsnvYMOjCX%2FJLikIfHq9yi2KoSK8n8g3K%2Fimg.png)
에러 내용 1) 발생 2) 원인 package jpabook.jpashop.service; import jpabook.jpashop.domain.Address; import jpabook.jpashop.domain.Member; import jpabook.jpashop.domain.Order; import jpabook.jpashop.domain.OrderStatus; import jpabook.jpashop.domain.item.Book; import jpabook.jpashop.repository.OrderRepository; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.s..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fex6WYN%2FbtsnqvK2PhH%2FYKB62DOELfBwqmiwbXUkvK%2Fimg.png)
에러 내용 1) 발생 package jpabook.jpashop.service; import jpabook.jpashop.domain.Member; import jpabook.jpashop.repository.MemberRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.junit.jupiter.api.Test; import org.springframework.test.annotation.Rollback; import org.springframework.transaction.annotation.T..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fdpvjkw%2FbtsniteAp5C%2FKXNawcWsOZC7Fkxr8L3dKk%2Fimg.png)
에러 내용 1) 발생 2) 원인 원인은 간단했다. 강의를 보며 따라할 때, h2 DB를 끄고 하는건줄 알고 iterm에서 ctrl + C를 눌러 h2 DB를 끄고 ./gradlew clean build를 실행했었다. 하지만 백그라운드로 h2 DB를 실행시켜둔 상태로 build를 진행해야 한다. 3) 해결 제대로 build가 된 것을 볼 수 있다. clean build를 성공한 후 java -jar을 통해 .jar 파일을 터미널에서 실행시킬 수 있다.
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FQ3w0q%2Fbtsni7I2ATg%2F3P0kHGC8UeaKZLzNruyqk1%2Fimg.png)
에러 내용 1) 발생 2) 원인 구글링을 통해 여러 사람들이 말한 방법들을 다 해봤다. 우선 나는 스프링부트 2.7.~ 을 사용 중이다. 우선 쿼리파라미터는 아래의 라이브러리와 로깅 구문을 통해 해결할 수 있다. 스프링부트 2.x 외부 라이브러리 추가 implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.6' application.yml에 logging 구문 추가 logging: level: org.hibernate.SQL: debug org.hibernate.type: trace 스프링부트 3.0 이상을 사용할 경우 외부 라이브러리 추가 implementation 'com.github.gavlyukovskiy:p6spy-sprin..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FqSepN%2Fbtsngr27Gll%2FGgTf4Kwo0rwNYKLWjsHcI1%2Fimg.png)
@RunWith(SpringRunner.class) 매핑 시 initializationError 발생 1) 발생 package jpabook.jpashop; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.spring..