springboot的常用注释


banner.location

spring.profile.active

spring.application.name

server.port=8080
server.session-timeout
server.context-path=/

server.ssl.enabled=true

server.tomcat.access-log-pattern=
server.tomcat.uri-encoding=UTF-8

spring.mvc.prefix=
spring.mvc.suffix=

multipart.enabled=true
multipart.max-file-size=1Mb
multipart.max-request-size=10Mb

spring.hateoas.apply-to-primary-boject-mapper=true #只有这一个配置
# 简介HATEOAS(Hypermedia as the engine of application state)是 REST 架构风格中最复杂的约束,也是构建成熟 REST 服务的核心

spring.http.encoding.charset=UTF-8

spring.http.gzip.XXX 配置http response compression

spring.jackson.XXX 

spring.thymeleaf.enabled=true

spring.freemarker.charset=UTF-8

spring.groovy.template.cache=true

spring.groovy.template.cache=true
spring主导的运行于JVM的动态语言,可以替代java开发
Groovy是一种基于JVM(Java虚拟机)的敏捷开发语言,它结合了Python、Ruby和Smalltalk的许多强大的特性,Groovy 代码能够与 Java 代码很好地结合,也能用于扩展现有代码。

security.user.name=user
security.enable-csrf=false

spring.oauth2.client.client-id=
spring.oauth2.sso.filter-order=

spring.datasource.driver-class-name=
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=

spring.data.mongodb.host=
spring.data.mongodb.prot=27017

spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=

spring.jta.atomikos.XXX  //分布式事务jta

spring.jta.bitronix.XXX

spring.data.solr.host=http://127.0.0.1:8983/solr

spring.data.elasticsearch.cluster-name=
spring.data.elasticsearch.cluster-nodes=
spring.data.elasticsearch.repositories.enabled=true

spring.data.rest.base-path=

flyway.enabled=true
flyway.user= Flyway是独立于数据库的应用、管理并跟踪数据库变更的数据库版本管理工具。


liquibase.url= 用于跟踪,管理和应用数据库变化的开源的数据库重构工具

spring.jmx.enabled=true

spring.rabbitmq.address=
spring.rabbitmq.host=
spring.rabbitmq.prot=
spring.rabbitmq.password=

spring.redis.database=
spring.redis.host=
spring.redis.password
spring.redis.port=6379


spring.activemq.broker-url=tcp://localhost:61616
spring.activemq.user=
spring.activemq.password= ActiveMQ是一个纯Java程序,因此只需要操作系统支持Java虚拟机,ActiveMQ便可执行

spring.hornetq.host=
spring.hornetq.port=5445  HornetQ完全支持JMS

spring.jms.jndi-name=

spring.mail.host=smtp.acme.org
spring.mail.port=
spring.mail.username=
spring.mail.password=

spring.batch.job.names=job1,job2
spring.batch.job.enabled=true

spring.catch.type= redis,echcache
spring.cache.cache-names=

spring.aop.auto=

spring.social.auto-connection-views=true
 # SpringSocial给我们提供了一个AbstractOAuth2ServiceProvider抽象类
spring.devtools.restart.enabled=true

management.port
management.address

endpoints.beans.id=beans
endpoints.dump.id=dump
endpoints.health.enabled=true
endpoints.shutdown.enabled=false

management.health.db.enabled=true
management.health.redis.enabled=true

shell.auth=simple
shell.ssh.enabled=
shell.ssh.port=
shell.telnet.port=
shell.auth.simple.user.name=
shell.auth.simple.user.password=

spring.metrics.export.enabled=true
对于分布式软件系统来说Metrics已经成为了不可缺少的组成部分,通过它我们可以了解系统的运行状况、健康状况、性能状况

spring.sendgird.username=
spring.sendgrid.password=SendGrid 是一个电子邮件服务平台
spring.git.properties=


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章