org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-aop
mysql
mysql-connector-java
5.1.46
#(默认端口号,可不配置)
server.port=8080
#连接mysql和连接池
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezOne=UTC
spring.datasource.username=root
spring.datasource.password=root
#配置mysql数据库字段和实体属性映射
mybatis.configuration.map-underscore-to-camel-case=true
#添加sql日志(debug级别-level后面为你mapper接口的路径)
logging.level.com.example.mybatis.mapper=debug
#如果mapper.xml文件在resources下则需要此配置(classpath后面的mapper为存放xml文件的包)
mybatis.mapper-locatiOns=classpath:mapper/*.xml
#如果Mapper的xml映射文件在src/main/java包下时,需要此配置
src/main/java
**/*.xml
src/main/resources
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
enableCountByExample="true" enableUpdateByExample="true"
enableDeleteByExample="true" enableSelectByExample="true"
selectByExampleQueryId="true">
org.mybatis.generator
mybatis-generator-maven-plugin
#版本
1.3.2
此位置是上面截图的位置(你放在哪里就写在哪里)
D:\\mybatis\\src\\main\\resources\\generate\\generatorConfig.xml
true
true
Generate MyBatis Artifacts
deploy
generate
org.mybatis.generator
mybatis-generator-core
1.3.2