Skip to content

Commit de51b3f

Browse files
committed
添加命名转换规则
1 parent 8518570 commit de51b3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

springboot-mybatis/src/main/resources/application.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ spring:
22
application:
33
name: item-service
44
datasource:
5-
url: jdbc:mysql://localhost:3306/springboot-learn
5+
url: jdbc:mysql://localhost:3306/springboot-mybatis
66
username: root
77
password: 123456
88
hikari:
99
maximum-pool-size: 30
10-
minimum-idle: 10
10+
minimum-idle: 10
11+
# 开启驼峰式命名转换,映射关系:user_name-->userName
12+
mybatis:
13+
configuration:
14+
map-underscore-to-camel-case: true

0 commit comments

Comments
 (0)