본문 바로가기

프로젝트 기록

Vinish 프로젝트 에러 기록

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이 제대로 설정되어 실행되는지 있는지 체크.