Welcome

首页 / 软件开发 / JAVA / SpringBoot工程中application.properties文件示例

SpringBoot工程中application.properties文件示例:
server.port=8080
server.servlet.encoding.charset=utf-8
server.servlet.encoding.enabled=true
server.max-http-header-size=10000000
server.error.include-exception=true
spring.devtools.restart.enabled=true
#MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/sq_base?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
mybatis.configuration.call-setters-on-nulls=true
#Echo SQL Results
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
#EchoSQL
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
#Upload
file.staticAccessPath=/upload/**
file.uploadFolder=/Users/admin/Downloads/WORK/Upload/
spring.servlet.multipart.max-file-size=20MB
spring.servlet.multipart.max-request-size=20MB
#Thymeleaf
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.mode=HTML5
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.servlet.content-type=text/html
spring.thymeleaf.suffix=.html
mybatis.mapper-locations=classpath:mappers/*xml
mybatis.type-aliases-package=cn.com.weisoft.base.entity
spring.thymeleaf.cache=true
spring.thymeleaf.check-template=true
spring.thymeleaf.check-template-location=true
spring.thymeleaf.enabled=true
#Redis
spring.redis.database=0
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=
spring.redis.timeout=100000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
spring.redis.jedis.pool.max-wait=-1