File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
src/main/resources/generator Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 84
84
<dependency >
85
85
<groupId >tk.mybatis</groupId >
86
86
<artifactId >mapper-spring-boot-starter</artifactId >
87
- <!-- <version>1.2.0</version>-->
88
- <version >1.2.4</version >
87
+ <version >2.0.0</version >
89
88
</dependency >
90
89
<!-- pagehelper-->
91
90
<dependency >
144
143
</dependency >
145
144
<dependency >
146
145
<groupId >tk.mybatis</groupId >
147
- <artifactId >mapper</artifactId >
148
- <version >3.4 .0</version >
146
+ <artifactId >mapper-generator </artifactId >
147
+ <version >1.0 .0</version >
149
148
</dependency >
150
149
</dependencies >
151
150
</plugin >
Original file line number Diff line number Diff line change 4
4
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
5
5
6
6
<generatorConfiguration >
7
- <properties resource =" application.properties" />
7
+ <properties resource =" application-dev .properties" />
8
8
9
9
<context id =" Mysql" targetRuntime =" MyBatis3Simple" defaultModelType =" flat" >
10
10
<property name =" beginningDelimiter" value =" `" />
14
14
<property name =" mappers" value =" tk.mybatis.springboot.util.MyMapper" />
15
15
</plugin >
16
16
17
- <jdbcConnection driverClass =" ${druid. driver-class}"
18
- connectionURL =" ${druid .url}"
19
- userId =" ${druid .username}"
20
- password =" ${druid .password}" >
17
+ <jdbcConnection driverClass =" ${spring.datasource. driver-class-name }"
18
+ connectionURL =" ${spring.datasource .url}"
19
+ userId =" ${spring.datasource .username}"
20
+ password =" ${spring.datasource .password}" >
21
21
</jdbcConnection >
22
22
23
23
<javaModelGenerator targetPackage =" tk.mybatis.springboot.model" targetProject =" src/main/java" />
27
27
<javaClientGenerator targetPackage =" tk.mybatis.springboot.mapper" targetProject =" src/main/java"
28
28
type =" XMLMAPPER" />
29
29
30
- <table tableName =" % " >
30
+ <table tableName =" country " >
31
31
<!-- mysql 配置-->
32
32
<generatedKey column =" id" sqlStatement =" Mysql" identity =" true" />
33
33
<!-- oracle 配置-->
You can’t perform that action at this time.
0 commit comments