application.properties配置

############################################################
# mysql数据源配置(alibaba)
############################################################
spring.datasource.url=jdbc:mysql://rm-wz96579548tb92i29vo.mysql.rds.aliyuncs.com:3306/hdl?zeroDateTimeBehavior=convertToNull&userUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=root
spring.datasource.password=Hdl123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.druid.initial-size=1
spring.datasource.druid.min-idle=1
spring.datasource.druid.max-active=20
spring.datasource.druid.test-on-borrow=true
spring.datasource.druid.stat-view-servlet.allow=true
spring.jpa.show-sql=true


############################################################
# mybatis配置
############################################################
#mybatis  the first is JavaBeen / the second is .xml
mybatis.type-aliases-package=com.hdlhd.driver.pojo
mybatis.mapper-locations=classpath:mapper/*.xml
# 通用mapper配置  identity方言
mapper.mappers=com.hdlhd.driver.utils.MyMapper
mapper.not-empty=false
mapper.identity=MYSQL
#pagehelper
pagehelper.helperDialect=mysql
pagehelper.reasonable=true
pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql

猜你喜欢

转载自blog.csdn.net/u011213903/article/details/83614718
今日推荐