spring-boot PROPERTIES 配置

  1. # SPRING CONFIG (ConfigFileApplicationListener)  
  2. spring.config.name= # config file name (default to 'application')  
  3. spring.config.location= # location of config file  
  4.   
  5. # PROFILES  
  6. spring.profiles= # comma list of active profiles  
  7.   
  8. # APPLICATION SETTINGS (SpringApplication)  
  9. spring.main.sources=  
  10. spring.main.web-environment= # detect by default  
  11. spring.main.show-banner=true  
  12. spring.main....= # see class for all properties  
  13.   
  14. # LOGGING  
  15. logging.path=/var/logs  
  16. logging.file=myapp.log  
  17. logging.config=  
  18.   
  19. # IDENTITY (ContextIdApplicationContextInitializer)  
  20. spring.application.name=  
  21. spring.application.index=  
  22.   
  23. # EMBEDDED SERVER CONFIGURATION (ServerProperties)  
  24. server.port=8080  
  25. server.address= # bind to a specific NIC  
  26. server.session-timeout= # session timeout in seconds  
  27. server.context-path= # the context path, defaults to '/'  
  28. server.servlet-path= # the servlet path, defaults to '/'  
  29. server.tomcat.access-log-pattern= # log pattern of the access log  
  30. server.tomcat.access-log-enabled=false # is access logging enabled  
  31. server.tomcat.protocol-header=x-forwarded-proto # ssl forward headers  
  32. server.tomcat.remote-ip-header=x-forwarded-for  
  33. server.tomcat.basedir=/tmp # base dir (usually not needed, defaults to tmp)  
  34. server.tomcat.background-processor-delay=30; # in seconds  
  35. server.tomcat.max-threads = 0 # number of threads in protocol handler  
  36. server.tomcat.uri-encoding = UTF-8 # character encoding to use for URL decoding  
  37.   
  38. # SPRING MVC (HttpMapperProperties)  
  39. http.mappers.json-pretty-print=false # pretty print JSON  
  40. http.mappers.json-sort-keys=false # sort keys  
  41. spring.mvc.locale= # set fixed locale, e.g. en_UK  
  42. spring.mvc.date-format= # set fixed date format, e.g. dd/MM/yyyy  
  43. spring.mvc.message-codes-resolver-format= # PREFIX_ERROR_CODE / POSTFIX_ERROR_CODE  
  44. spring.view.prefix= # MVC view prefix  
  45. spring.view.suffix= # ... and suffix  
  46. spring.resources.cache-period= # cache timeouts in headers sent to browser  
  47. spring.resources.add-mappings=true # if default mappings should be added  
  48.   
  49. # THYMELEAF (ThymeleafAutoConfiguration)  
  50. spring.thymeleaf.prefix=classpath:/templates/  
  51. spring.thymeleaf.suffix=.html  
  52. spring.thymeleaf.mode=HTML5  
  53. spring.thymeleaf.encoding=UTF-8  
  54. spring.thymeleaf.content-type=text/html # ;charset=<encoding> is added  
  55. spring.thymeleaf.cache=true # set to false for hot refresh  
  56.   
  57. # FREEMARKER (FreeMarkerAutoConfiguration)  
  58. spring.freemarker.allowRequestOverride=false  
  59. spring.freemarker.allowSessionOverride=false  
  60. spring.freemarker.cache=true  
  61. spring.freemarker.checkTemplateLocation=true  
  62. spring.freemarker.contentType=text/html  
  63. spring.freemarker.exposeRequestAttributes=false  
  64. spring.freemarker.exposeSessionAttributes=false  
  65. spring.freemarker.exposeSpringMacroHelpers=false  
  66. spring.freemarker.prefix=  
  67. spring.freemarker.requestContextAttribute=  
  68. spring.freemarker.settings.*=  
  69. spring.freemarker.suffix=.ftl  
  70. spring.freemarker.templateEncoding=UTF-8  
  71. spring.freemarker.templateLoaderPath=classpath:/templates/  
  72. spring.freemarker.viewNames= # whitelist of view names that can be resolved  
  73.   
  74. # GROOVY TEMPLATES (GroovyTemplateAutoConfiguration)  
  75. spring.groovy.template.allowRequestOverride=false  
  76. spring.groovy.template.allowSessionOverride=false  
  77. spring.groovy.template.cache=true  
  78. spring.groovy.template.configuration.*= # See Groovy's TemplateConfiguration  
  79. spring.groovy.template.contentType=text/html  
  80. spring.groovy.template.prefix=classpath:/templates/  
  81. spring.groovy.template.suffix=.tpl  
  82. spring.groovy.template.templateEncoding=UTF-8  
  83. spring.groovy.template.viewNames= # whitelist of view names that can be resolved  
  84.   
  85. # VELOCITY TEMPLATES (VelocityAutoConfiguration)  
  86. spring.velocity.allowRequestOverride=false  
  87. spring.velocity.allowSessionOverride=false  
  88. spring.velocity.cache=true  
  89. spring.velocity.checkTemplateLocation=true  
  90. spring.velocity.contentType=text/html  
  91. spring.velocity.dateToolAttribute=  
  92. spring.velocity.exposeRequestAttributes=false  
  93. spring.velocity.exposeSessionAttributes=false  
  94. spring.velocity.exposeSpringMacroHelpers=false  
  95. spring.velocity.numberToolAttribute=  
  96. spring.velocity.prefix=  
  97. spring.velocity.properties.*=  
  98. spring.velocity.requestContextAttribute=  
  99. spring.velocity.resourceLoaderPath=classpath:/templates/  
  100. spring.velocity.suffix=.vm  
  101. spring.velocity.templateEncoding=UTF-8  
  102. spring.velocity.viewNames= # whitelist of view names that can be resolved  
  103.   
  104. # INTERNATIONALIZATION (MessageSourceAutoConfiguration)  
  105. spring.messages.basename=messages  
  106. spring.messages.cacheSeconds=-1  
  107. spring.messages.encoding=UTF-8  
  108.   
  109.   
  110. # SECURITY (SecurityProperties)  
  111. security.user.name=user # login username  
  112. security.user.password= # login password  
  113. security.user.role=USER # role assigned to the user  
  114. security.require-ssl=false # advanced settings ...  
  115. security.enable-csrf=false  
  116. security.basic.enabled=true  
  117. security.basic.realm=Spring  
  118. security.basic.path= # /**  
  119. security.headers.xss=false  
  120. security.headers.cache=false  
  121. security.headers.frame=false  
  122. security.headers.contentType=false  
  123. security.headers.hsts=all # none / domain / all  
  124. security.sessions=stateless # always / never / if_required / stateless  
  125. security.ignored=false  
  126.   
  127. # DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)  
  128. spring.datasource.name= # name of the data source  
  129. spring.datasource.initialize=true # populate using data.sql  
  130. spring.datasource.schema= # a schema (DDL) script resource reference  
  131. spring.datasource.data= # a data (DML) script resource reference  
  132. spring.datasource.platform= # the platform to use in the schema resource (schema-${platform}.sql)  
  133. spring.datasource.continueOnError=false # continue even if can't be initialized  
  134. spring.datasource.separator=; # statement separator in SQL initialization scripts  
  135. spring.datasource.driverClassName= # JDBC Settings...  
  136. spring.datasource.url=  
  137. spring.datasource.username=  
  138. spring.datasource.password=  
  139. spring.datasource.max-active=100 # Advanced configuration...  
  140. spring.datasource.max-idle=8  
  141. spring.datasource.min-idle=8  
  142. spring.datasource.initial-size=10  
  143. spring.datasource.validation-query=  
  144. spring.datasource.test-on-borrow=false  
  145. spring.datasource.test-on-return=false  
  146. spring.datasource.test-while-idle=  
  147. spring.datasource.time-between-eviction-runs-millis=  
  148. spring.datasource.min-evictable-idle-time-millis=  
  149. spring.datasource.max-wait-millis=  
  150.   
  151. # MONGODB (MongoProperties)  
  152. spring.data.mongodb.host= # the db host  
  153. spring.data.mongodb.port=27017 # the connection port (defaults to 27107)  
  154. spring.data.mongodb.uri=mongodb://localhost/test # connection URL  
  155. spring.data.mongo.repositories.enabled=true # if spring data repository support is enabled  
  156.   
  157. # JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)  
  158. spring.jpa.properties.*= # properties to set on the JPA connection  
  159. spring.jpa.openInView=true  
  160. spring.jpa.show-sql=true  
  161. spring.jpa.database-platform=  
  162. spring.jpa.database=  
  163. spring.jpa.generate-ddl=false # ignored by Hibernate, might be useful for other vendors  
  164. spring.jpa.hibernate.naming-strategy= # naming classname  
  165. spring.jpa.hibernate.ddl-auto= # defaults to create-drop for embedded dbs  
  166. spring.data.jpa.repositories.enabled=true # if spring data repository support is enabled  
  167.   
  168. # SOLR (SolrProperties})  
  169. spring.data.solr.host=http://127.0.0.1:8983/solr  
  170. spring.data.solr.zkHost=  
  171. spring.data.solr.repositories.enabled=true # if spring data repository support is enabled  
  172.   
  173. # ELASTICSEARCH (ElasticsearchProperties})  
  174. spring.data.elasticsearch.cluster-name= # The cluster name (defaults to elasticsearch)  
  175. spring.data.elasticsearch.cluster-nodes= # The address(es) of the server node (comma-separated; if not specified starts a client node)  
  176. spring.data.elasticsearch.local=true # if local mode should be used with client nodes  
  177. spring.data.elasticsearch.repositories.enabled=true # if spring data repository support is enabled  
  178.   
  179.   
  180.   
  181. # FLYWAY (FlywayProperties)  
  182. flyway.locations=classpath:db/migrations # locations of migrations scripts  
  183. flyway.schemas= # schemas to update  
  184. flyway.initVersion= 1 # version to start migration  
  185. flyway.prefix=V  
  186. flyway.suffix=.sql  
  187. flyway.enabled=true  
  188. flyway.url= # JDBC url if you want Flyway to create its own DataSource  
  189. flyway.user= # JDBC username if you want Flyway to create its own DataSource  
  190. flyway.password= # JDBC password if you want Flyway to create its own DataSource  
  191.   
  192. # LIQUIBASE (LiquibaseProperties)  
  193. liquibase.change-log=classpath:/db/changelog/db.changelog-master.yaml  
  194. liquibase.contexts= # runtime contexts to use  
  195. liquibase.default-schema= # default database schema to use  
  196. liquibase.drop-first=false  
  197. liquibase.enabled=true  
  198.   
  199. # JMX  
  200. spring.jmx.enabled=true # Expose MBeans from Spring  
  201.   
  202. # RABBIT (RabbitProperties)  
  203. spring.rabbitmq.host= # connection host  
  204. spring.rabbitmq.port= # connection port  
  205. spring.rabbitmq.addresses= # connection addresses (e.g. myhost:9999,otherhost:1111)  
  206. spring.rabbitmq.username= # login user  
  207. spring.rabbitmq.password= # login password  
  208. spring.rabbitmq.virtualhost=  
  209. spring.rabbitmq.dynamic=  
  210.   
  211. # REDIS (RedisProperties)  
  212. spring.redis.host=localhost # server host  
  213. spring.redis.password= # server password  
  214. spring.redis.port=6379 # connection port  
  215. spring.redis.pool.max-idle=8 # pool settings ...  
  216. spring.redis.pool.min-idle=0  
  217. spring.redis.pool.max-active=8  
  218. spring.redis.pool.max-wait=-1  
  219.   
  220. # ACTIVEMQ (ActiveMQProperties)  
  221. spring.activemq.broker-url=tcp://localhost:61616 # connection URL  
  222. spring.activemq.user=  
  223. spring.activemq.password=  
  224. spring.activemq.in-memory=true # broker kind to create if no broker-url is specified  
  225. spring.activemq.pooled=false  
  226.   
  227. # HornetQ (HornetQProperties)  
  228. spring.hornetq.mode= # connection mode (native, embedded)  
  229. spring.hornetq.host=localhost # hornetQ host (native mode)  
  230. spring.hornetq.port=5445 # hornetQ port (native mode)  
  231. spring.hornetq.embedded.enabled=true # if the embedded server is enabled (needs hornetq-jms-server.jar)  
  232. spring.hornetq.embedded.serverId= # auto-generated id of the embedded server (integer)  
  233. spring.hornetq.embedded.persistent=false # message persistence  
  234. spring.hornetq.embedded.data-directory= # location of data content (when persistence is enabled)  
  235. spring.hornetq.embedded.queues= # comma separate queues to create on startup  
  236. spring.hornetq.embedded.topics= # comma separate topics to create on startup  
  237. spring.hornetq.embedded.cluster-password= # customer password (randomly generated by default)  
  238.   
  239. # JMS (JmsProperties)  
  240. spring.jms.pub-sub-domain= # false for queue (default), true for topic  
  241.   
  242. # SPRING BATCH (BatchDatabaseInitializer)  
  243. spring.batch.job.names=job1,job2  
  244. spring.batch.job.enabled=true  
  245. spring.batch.initializer.enabled=true  
  246. spring.batch.schema= # batch schema to load  
  247.   
  248. # AOP  
  249. spring.aop.auto=  
  250. spring.aop.proxy-target-class=  
  251.   
  252. # FILE ENCODING (FileEncodingApplicationListener)  
  253. spring.mandatory-file-encoding=false  
  254.   
  255. # SPRING SOCIAL (SocialWebAutoConfiguration)  
  256. spring.social.auto-connection-views=true # Set to true for default connection views or false if you provide your own  
  257.   
  258. # SPRING SOCIAL FACEBOOK (FacebookAutoConfiguration)  
  259. spring.social.facebook.app-id= # your application's Facebook App ID  
  260. spring.social.facebook.app-secret= # your application's Facebook App Secret  
  261.   
  262. # SPRING SOCIAL LINKEDIN (LinkedInAutoConfiguration)  
  263. spring.social.linkedin.app-id= # your application's LinkedIn App ID  
  264. spring.social.linkedin.app-secret= # your application's LinkedIn App Secret  
  265.   
  266. # SPRING SOCIAL TWITTER (TwitterAutoConfiguration)  
  267. spring.social.twitter.app-id= # your application's Twitter App ID  
  268. spring.social.twitter.app-secret= # your application's Twitter App Secret  
  269.   
  270. # SPRING MOBILE SITE PREFERENCE (SitePreferenceAutoConfiguration)  
  271. spring.mobile.sitepreference.enabled=true # enabled by default  
  272.   
  273. # SPRING MOBILE DEVICE VIEWS (DeviceDelegatingViewResolverAutoConfiguration)  
  274. spring.mobile.devicedelegatingviewresolver.enabled=true # disabled by default  
  275. spring.mobile.devicedelegatingviewresolver.normalPrefix=  
  276. spring.mobile.devicedelegatingviewresolver.normalSuffix=  
  277. spring.mobile.devicedelegatingviewresolver.mobilePrefix=mobile/  
  278. spring.mobile.devicedelegatingviewresolver.mobileSuffix=  
  279. spring.mobile.devicedelegatingviewresolver.tabletPrefix=tablet/  
  280. spring.mobile.devicedelegatingviewresolver.tabletSuffix=  
  281.   
  282. # ----------------------------------------  
  283. # ACTUATOR PROPERTIES  
  284. # ----------------------------------------  
  285.   
  286. # MANAGEMENT HTTP SERVER (ManagementServerProperties)  
  287. management.port= # defaults to 'server.port'  
  288. management.address= # bind to a specific NIC  
  289. management.contextPath= # default to '/'  
  290.   
  291. # ENDPOINTS (AbstractEndpoint subclasses)  
  292. endpoints.autoconfig.id=autoconfig  
  293. endpoints.autoconfig.sensitive=true  
  294. endpoints.autoconfig.enabled=true  
  295. endpoints.beans.id=beans  
  296. endpoints.beans.sensitive=true  
  297. endpoints.beans.enabled=true  
  298. endpoints.configprops.id=configprops  
  299. endpoints.configprops.sensitive=true  
  300. endpoints.configprops.enabled=true  
  301. endpoints.configprops.keys-to-sanitize=password,secret  
  302. endpoints.dump.id=dump  
  303. endpoints.dump.sensitive=true  
  304. endpoints.dump.enabled=true  
  305. endpoints.env.id=env  
  306. endpoints.env.sensitive=true  
  307. endpoints.env.enabled=true  
  308. endpoints.health.id=health  
  309. endpoints.health.sensitive=false  
  310. endpoints.health.enabled=true  
  311. endpoints.info.id=info  
  312. endpoints.info.sensitive=false  
  313. endpoints.info.enabled=true  
  314. endpoints.metrics.id=metrics  
  315. endpoints.metrics.sensitive=true  
  316. endpoints.metrics.enabled=true  
  317. endpoints.shutdown.id=shutdown  
  318. endpoints.shutdown.sensitive=true  
  319. endpoints.shutdown.enabled=false  
  320. endpoints.trace.id=trace  
  321. endpoints.trace.sensitive=true  
  322. endpoints.trace.enabled=true  
  323.   
  324. # MVC ONLY ENDPOINTS  
  325. endpoints.jolokia.path=jolokia  
  326. endpoints.jolokia.sensitive=true  
  327. endpoints.jolokia.enabled=true # when using Jolokia  
  328. endpoints.error.path=/error  
  329.   
  330. # JMX ENDPOINT (EndpointMBeanExportProperties)  
  331. endpoints.jmx.enabled=true  
  332. endpoints.jmx.domain= # the JMX domain, defaults to 'org.springboot'  
  333. endpoints.jmx.unique-names=false  
  334. endpoints.jmx.enabled=true  
  335. endpoints.jmx.staticNames=  
  336.   
  337. # JOLOKIA (JolokiaProperties)  
  338. jolokia.config.*= # See Jolokia manual  
  339.   
  340. # REMOTE SHELL  
  341. shell.auth=simple # jaas, key, simple, spring  
  342. shell.command-refresh-interval=-1  
  343. shell.command-path-pattern= # classpath*:/commands/**, classpath*:/crash/commands/**  
  344. shell.config-path-patterns= # classpath*:/crash/*  
  345. shell.disabled-plugins=false # don't expose plugins  
  346. shell.ssh.enabled= # ssh settings ...  
  347. shell.ssh.keyPath=  
  348. shell.ssh.port=  
  349. shell.telnet.enabled= # telnet settings ...  
  350. shell.telnet.port=  
  351. shell.auth.jaas.domain= # authentication settings ...  
  352. shell.auth.key.path=  
  353. shell.auth.simple.user.name=  
  354. shell.auth.simple.user.password=  
  355. shell.auth.spring.roles=  
  356.   
  357. # GIT INFO  
  358. spring.git.properties= # resource ref to generated git info properties file  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值