springboot配置文件


springboot配置文件
#################################
server.port=8080 修改端口
server.servlet.session.timeout=1800
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.session.store-type=redis

#freemarker模板
spring.freemarker.allow-request-override=false
spring.freemarker.cache=false
spring.freemarker.check-template-location=true
spring.freemarker.charset=UTF-8
spring.freemarker.content-type=text/html
spring.freemarker.expose-request-attributes=false
spring.freemarker.expose-session-attributes=false
spring.freemarker.expose-spring-macro-helpers=false
spring.freemarker.prefix= 模板前缀
spring.freemarker.suffix= 模板后缀
spring.freemarker.template-loader-path=classpath:/templates/
#数据源的地址
spring.datasource.url=jdbc:mysql://127.0.0.1/db_muyi?characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.tomcat.test-while-idle=true
#在获取连接时验证,会影响性能(一般为false)
spring.datasource.test-on-borrow=false
#在连接归还到连接池时是否测试该连接
spring.datasource.test-on-return=false
spring.datasource.validation-query=SELECT 1 FROM DUAL
#空闲连接回收的时间间隔,与test-while-idle一起使用,设置5分钟
spring.datasource.time-between-eviction-runs-millis=300000
#连接池空闲连接的有效时间,设置为30分钟
spring.datasource.min-evictable-ide-time-millis=1800000
spring.datasource.initial-size=5
#指定连接池汇总最大的活跃连接数
spring.datasource.max-active=50
#指定连接池等待俩你姐返回的最大等待时间,毫秒单位
spring.datasource.mac-wait=60000
#指定必须保持俩你姐的最小值
spring.datasource.min-idle=5
spring.jpa.database=MYSQL
#是否打印显示sql语句到控制台
spring.jpa.show-sql=false
#自动检查实体和数据库表是否一致,如果不一致则会进行更新数据库表
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDbDialect