1. 程式人生 > >springboot application.properties配置檔案

springboot application.properties配置檔案

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