오류 해결 5

springBoot 콘솔 쿼리 출력

해당하는 설정 적용이 잘 안되었음 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 이렇게 ..

오류 해결 2023.03.04

JPA TEST 중...

java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: member near line 1, column 15 [select m from member m where m.name = :name] 오류코드 첫 줄 해결 List result = em.createQuery("select m from Member m where m.name = :name", Member.class) 새로 작성함.. 뭐가 문제지? 다시 쓰고 해결 되었고 새로운 오류 발생! javax.persistence.PersistenceException: org.hibernate.exception.SQLGramm..

오류 해결 2022.12.20