강의

멘토링

커뮤니티

Inflearn Community Q&A

jjag10155416's profile image
jjag10155416

asked

Spring Boot JUnit Testing - Bank Application with Security

successfulAuthentication test

[정보공유] Hibernate 로그 작동 안하시는 분들!!

Resolved

Written on

·

342

·

Edited

3

Hibernate 로그 작동 안하시는 분들 중에 저처럼 Spring-boot:3.0.0 쓰시는 사람 계시다면 도움 될 겁니다!

 

기존 강사님 application-test.yml

logging:
  level:
    '[shop.mtcoding.bank]': DEBUG
    '[org.hibernate.type]': TRACE

기존의 org.hibernate.type: TRACEorg.hibernate.orm.jdbc.bind: TRACE 이걸로 대체해주시면 작동 될 겁니다!!

수정된 application-test.yml

logging:
  level:
    org.hibernate.orm.jdbc.bind: TRACE
    shop.mtcoding.bank: DEBUG

왜냐하면 원인이 Spring-boot3 부터 hibernate6 사용하기 때문입니다. 따라서 Spring-boot3에서는 hibernate6의 log level 설정하는 방법으로 yml을 정의해야 제대로 로그가 찍힙니다.

자세한 것은 아래 링크를 확인해보시면 도움 될 것 같습니다😚.

출처: https://thorben-janssen.com/hibernate-logging-guide/#log4j-configuration-for-hibernate-4-5-and-6

spring-bootjunit소프트웨어-테스트

Answer

This question is waiting for answers
Be the first to answer!
jjag10155416's profile image
jjag10155416

asked

Ask a question