오류 해결

springBoot 콘솔 쿼리 출력

JYJ 2023. 3. 4. 18:42

해당하는 설정 적용이 잘 안되었음 

  jpa:
    hibernate:
      ddl-auto: create
    show-sql: true
    properties:
      hibernate:
         format_sql: true

나는 콘솔에 쿼리문을 보고 싶었음

뭘해도 안됨 

         format_sql: true 이부분에 노란색 경고문을 봄

This key is used in a map and contains special characters. It is recommended to escape it by surrounding it with '[]'.

그래서 [format_sql]: true 추가

안됨 

다른 경고문 나옴 : Expecting a 'String' but got a 'Sequence' node

'[format_sql]': true 

이렇게 고쳐주고 해결됨