#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-web'
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
|
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
|
||||||
|
|
||||||
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
|
||||||
|
|
||||||
runtimeOnly 'com.h2database:h2'
|
runtimeOnly 'com.h2database:h2'
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok'
|
compileOnly 'org.projectlombok:lombok'
|
||||||
|
|||||||
@@ -4,4 +4,9 @@ spring.datasource.url=jdbc:h2:tcp://localhost/~/test
|
|||||||
spring.datasource.username=sa
|
spring.datasource.username=sa
|
||||||
|
|
||||||
#jdbcTemplate sql log
|
#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
|
||||||
@@ -5,3 +5,8 @@ spring.profiles.active=test
|
|||||||
|
|
||||||
#jdbcTemplate sql log
|
#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