zoukankan      html  css  js  c++  java
  • 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= #
  • 相关阅读:
    ASP.NET HTTP模块和处理程序(5)(转载)
    充分利用ASP.NET的三种缓存提高站点性能(转载)
    LINQ体验(4)——LINQ简介和LINQ to SQL语句之Where
    理解DataSet的数据缓存机制
    在ASP.NET中实现AJAX(一)
    ASP.NET HTTP模块和处理程序(2)(转载)
    ASP.NET HTTP模块和处理程序(1)(转载)
    aspx页面中文汉字显示为乱码
    贫血还是充血?(转载)
    ASP.NET HTTP模块和处理程序(3)(转载)
  • 原文地址:https://www.cnblogs.com/yourGod/p/9207272.html
Copyright © 2011-2022 走看看