• 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= #
  • 相关阅读:
    重拾安卓_01_安卓开发环境搭建(eclipse)
    重拾安卓_01_安卓开发环境搭建(android studio)
    【BZOJ】1038: [ZJOI2008]瞭望塔
    【BZOJ】2178: 圆的面积并
    【UR #4】元旦三侠的游戏(博弈论+记忆化)
    【BZOJ】1027: [JSOI2007]合金(凸包+floyd)
    【POJ】1151 Atlantis(线段树)
    【POJ】1228 Grandpa's Estate(凸包)
    【POJ】1556 The Doors(计算几何基础+spfa)
    【POJ】1113 Wall(凸包)
  • 原文地址:https://www.cnblogs.com/yourGod/p/9207272.html
Copyright © 2020-2023  润新知