springboot application.properties配置文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_37202952/article/details/84850547

application.properties

 #xml映射文件路径配置

mybatis.mapper-locations=classpath:F:com/amu/springboot/mapper/*.xml #自定义端口号 server.port=8081

#开启日志
debug=true

#日志级别
logging.level.*=DEBUG

#日志存储文件名
logging.file=my.log

#日志存储路径
logging.path=/var/log

#mysql数据库链接配置
spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf8&useSSL=false spring.datasource.username=root spring.datasource.password=root

#链接池参数配置
spring.datasource.max-idle=10

spring.datasource.max-wait=10000

spring.datasource.min-idle=5

spring.datasource.initial-size=5

猜你喜欢

转载自blog.csdn.net/weixin_37202952/article/details/84850547