#13 spring db: mybatis - setting

This commit is contained in:
haerong22
2022-06-29 03:01:57 +09:00
parent aa20fd5559
commit 7f3ea50313
3 changed files with 14 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
runtimeOnly 'com.h2database:h2'
compileOnly 'org.projectlombok:lombok'

View File

@@ -4,4 +4,9 @@ spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.username=sa
#jdbcTemplate sql log
#logging.level.org.springframework.jdbc=debug
#logging.level.org.springframework.jdbc=
#Mybatis
mybatis.type-aliases-package=hello.itemservice.domain
mybatis.configuration.map-underscore-to-camel-case=true
logging.level.hello.itemservice.repository.mybatis=trace

View File

@@ -4,4 +4,9 @@ spring.profiles.active=test
#spring.datasource.username=sa
#jdbcTemplate sql log
logging.level.org.springframework.jdbc=debug
logging.level.org.springframework.jdbc=debug
#Mybatis
mybatis.type-aliases-package=hello.itemservice.domain
mybatis.configuration.map-underscore-to-camel-case=true
logging.level.hello.itemservice.repository.mybatis=trace