配置 application.yml
#配置服务
server:
port: 8083
mysql 配置
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/community?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
username: root
password: yumuing
type: com.zaxxer.hikari.HikariDataSource
hikari:
maximum-pool-size: 15
minimum-idle: 5
idle-timeout: 30000
配置mybatis-plus
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
auto-mapping-behavior: full
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #控制台打印sql
use-generated-keys: true
mapper-locations: classpath*:mapper/**/*Mapper.xml
type-aliases-package: top.yumuing.community.entity