springboot基础配置
所属分类 springboot
浏览量 919
springboot2
server.error.path=/api/error
logging.config=classpath:logback-spring.xml
spring.mvc.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
spring.mvc.throw-exception-if-no-handler-found=true
spring.resources.add-mappings=false
spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false
spring.jackson.defaultPropertyInclusion=NON_NULL
app.name=xxx
app.output=/home/admin/apps/output/${app.name}
server.port=8080
server.tomcat.max-threads=200
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.directory=${app.output}/logs
spring.application.name=${app.name}
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
# log
logging.path=${app.output}/logs
logging.file=${logging.path}/app.log
logging.file.max-size=500MB
logging.file.max-history=10
logging.level.root=ERROR
management.endpoints.web.exposure.include=*
management.info.git.mode=full
info.app.name=${app.name}
spring.profiles.active=dev
logging.config=classpath:conf/xml/logback.xml
配置外部logback.xml
springboot配置大全
上一篇
下一篇
伤感情歌系列
甜歌系列
mysql的读已提交和可重复读
mysql redo undo binlog
tomcat8 嵌入式 servlet 实例
tomcat8 连接器