springboot配置文件中的基本配置


#应用启动端口设置
server.port=9088
#=================================微信相关====================================
#公众号
wxpay.appid=wx6fa6ca5888ed5c32
wxpay.appsecret=110add0f2aa3a5cb31e30a9c20bf0ebd

#=================================数据库相关配置====================================
#可以自动识别
#spring.datasource.driver-class-name =com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/lottery?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
spring.datasource.username =root
spring.datasource.password =123456

#如果不使用默认的数据源 (com.zaxxer.hikari.HikariDataSource)
spring.datasource.type =com.alibaba.druid.pool.DruidDataSource //需要在pom.xml文件中添加相应的包

# mybatis 下划线转驼峰配置,两者都可以
#mybatis.configuration.mapUnderscoreToCamelCase=true
mybatis.configuration.map-underscore-to-camel-case=true

#打印sql,方便调试
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

posted on 2021-01-27 15:09  java老三  阅读(81)  评论(0)    收藏  举报

导航