望山居

真相本来是一体的,太大了,所以大家给他画了格子,结果把自己困了起来

导航

SpringBoot常用应用属性配置表

#=========================================
#COMMON SPRING BOOT PROPERTIES
#
#This sample file is provided as a guideline. Do Not copy it in its entirety to your own application
#=========================================

#--------------------------------------------------------------------------
#CORE PROPERTIES
#--------------------------------------------------------------------------

#BANNER
banner.charset=UTF-8 #baner file encoding
banner.location=classpath:banner.txt #banner file location

#SPRING CONFIG(ConfigFileApplicationListener)
spring.config.name = #config file name (default to 'application')
spring.config.location = #location of config file

#PROFILED
spring.profiles.active= #comma list of active profiles
spring.profiles.include= #unconditionally activate the specified comma separated profiles

#APPLICATION SETTINGS (SpringApplication)
spring.main.sources= #sources(class name,package name or XML resource location) to include
spring.main.web-enviroment= # detect by default
spring.main.show-banner=true
spring.main....= #see class for all properties

#ADMIN (SpringApplicationAdminJmxAutoConfiguraion)
spring.application.admin.enabled=false #enable admin features for the application
spring.application.admin.jmx-name=org.springframework.boot:type=Admin,name=SpringApplication #JMX name of the application admin MBean

#OUTPUT
spring.output.ansi.enabled=detect #Configure the ANSI output("detect","always","never")

#LOGGING
logging.path=/var/logs
logging.file=myapp.log
logging.config= # location of config file (default classpath:logback.xml for logback)
logging.level.*= #levels for loggers,e.g. "logging.level.org.springframework=DEBUG"(TRACE,DEBUG,INFO,WARN,ERROR,FATAL,OFF)

#IDENTITY(ContextIdApplicationContextInitializer)
spring.application.name=
spring.application.index=

#EMBEDDED SERVER CONFIGURATION (ServerProperties)
server.prot=8080
server.address= #bind to a specific NIC
server.context-parameters.*= #Servlet context init parameters,e.g."server.context-parameters.a=aplha"
server.context-path= #

 

posted on 2018-06-21 09:46  穆道  阅读(208)  评论(0编辑  收藏  举报