diff --git a/spring-db/build.gradle b/spring-db/build.gradle index 6d16daa9..51073008 100644 --- a/spring-db/build.gradle +++ b/spring-db/build.gradle @@ -21,7 +21,8 @@ repositories { dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' - implementation 'org.springframework.boot:spring-boot-starter-jdbc' +// implementation 'org.springframework.boot:spring-boot-starter-jdbc' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2' diff --git a/spring-db/src/main/resources/application.properties b/spring-db/src/main/resources/application.properties index b67e9bdd..64bcc959 100644 --- a/spring-db/src/main/resources/application.properties +++ b/spring-db/src/main/resources/application.properties @@ -10,5 +10,8 @@ spring.datasource.username=sa mybatis.type-aliases-package=hello.itemservice.domain mybatis.configuration.map-underscore-to-camel-case=true logging.level.hello.itemservice.repository.mybatis=trace - mybatis.mapper-locations=classpath:mapper/**/*.xml + +#JPA log +logging.level.org.hibernate.SQL=DEBUG +logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE diff --git a/spring-db/src/test/resources/application.properties b/spring-db/src/test/resources/application.properties index d62e340e..c52cd271 100644 --- a/spring-db/src/test/resources/application.properties +++ b/spring-db/src/test/resources/application.properties @@ -10,5 +10,8 @@ logging.level.org.springframework.jdbc=debug mybatis.type-aliases-package=hello.itemservice.domain mybatis.configuration.map-underscore-to-camel-case=true logging.level.hello.itemservice.repository.mybatis=trace +mybatis.mapper-locations=classpath:mapper/**/*.xml -mybatis.mapper-locations=classpath:mapper/**/*.xml \ No newline at end of file +#JPA log +logging.level.org.hibernate.SQL=DEBUG +logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE \ No newline at end of file