#13 spring db: mybatis - setting
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user