1.
이런 에러 뜨면 DB랑 프로젝트 연결이 안 되어서 발생하는 에러다.
이번의 경우, application.yml의 jpa - properties부분에서
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
default_batch_fetch_size : 100
show_sql: true
format_sql: true
dialect부분을 org.hibernate.dialect.H2Dialect 에서 org.hibernate.dialect.MySQL5InnoDBDialect 로 변경하니 해결됨.
2.
nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null
이런 에러 뜨면 스웨거에서 문제가 발생한 것.
application.yml에 스웨거 관련된 내용 있는지 살펴보고, 없으면 spring 부분에 아래 내용 추가해 줄 것
mvc:
pathmatch:
matching-strategy: ant_path_matcher
3. 실행 안되고 에러 뜨면
- 인텔리제이의 경우 edit configure 들어가서 profile에 실행할 것의 이름이 제대로 들어가 있는지 체크
- 콘솔 초반 쪽에 profile이 제대로 설정되어 실행되는지 있는지 체크.
'프로젝트 기록' 카테고리의 다른 글
EC2에 redis 설치 & 백그라운드 실행 (0) | 2022.04.03 |
---|---|
코드 리팩토링 기록 - JPA Embedded 타입 활용 (0) | 2022.02.24 |
JMeter 성능 테스트 기록 (0) | 2022.02.23 |
JPA 쿼리 최적화 기록 (0) | 2022.02.23 |
MySql 시간 설정 삽질 기록 + 기타 기록 (0) | 2022.02.23 |