spring的jar包梳理

spring boot的jar包梳理
groupId: org.springframework.boot

jar包名称相关数量
spring-boot-dependenciesSpring Boot Dependencies
spring-boot-autoconfigureSpring Boot AutoConfigure
spring-boot-starter-parentParent pom providing dependency and plugin management for applications built with Maven
spring-boot-starter-webStarter for building web, including RESTful, applications using Spring MVC.
Uses Tomcat as the default embedded container
spring-boot-starter-webfluxStarter for building WebFlux applications
using Spring Framework’s Reactive Web support
spring-boot-starter-tomcatStarter for using Tomcat as the embedded servlet container.
Default servlet container starter used by spring-boot-starter-web
spring-boot-starter-jettyStarter for using Jetty as the embedded servlet container.
An alternative to spring-boot-starter-tomcat
spring-boot-starter-undertowStarter for using Undertow as the embedded servlet container.
An alternative to spring-boot-starter-tomcat
spring-boot-starter-reactor-nettyStarter for using Reactor Netty as the embedded reactive HTTP server.
spring-boot-starter-actuatorStarter for using Spring Boot’s Actuator which provides production ready features
to help you monitor and manage your application
spring-boot-actuator-autoconfigureSpring Boot Actuator AutoConfigure

spring cloud的jar包梳理
groupId: org.springframework.cloud

jar包名称相关数量
spring-cloud-starter-eureka-server用于建立Spring Cloud Eureka服务,实现服务发现功能
spring-cloud-starter-netflix-zuul微服务网关,服务路由

通用属性整理

属性描述
serverjar包:org.springframework.boot:spring-boot-autoconfigure
类名:org.springframework.boot.autoconfigure.web.ServerProperties
web服务器配置
server.portServer HTTP port
spring.profiles.activeactive profiles
spring.main.webApplicationTypeNONE, SERVLET, REACTIVE

zookeeper属性整理

属性描述
spring.cloud.zookeeperjar包:org.springframework.cloud:spring-cloud-zookeeper-core
类名:org.springframework.cloud.zookeeper.ZookeeperProperties
zookeeper连接配置
spring.cloud.zookeeper.enabledzookeeper开关,默认true
spring.cloud.zookeeper.connectString逗号分隔的host:port对集合,port可以省略
spring.cloud.zookeeper.baseSleepTimeMsInitial amount of time to wait between retries. 默认50
spring.cloud.zookeeper.maxRetriesMax number of times to retry. 默认10
spring.cloud.zookeeper.maxSleepMsMax time in ms to sleep on each retry. 默认500
spring.cloud.zookeeper.blockUntilConnectedWaitWait time to block on connection to Zookeeper. 默认10
spring.cloud.zookeeper.blockUntilConnectedUnitThe unit of time related to blocking on connection to Zookeeper. 默认TimeUnit.SECONDS

gson属性整理

属性描述
spring.gsonjar包:org.springframework.boot:spring-boot-autoconfigure
类名:org.springframework.boot.autoconfigure.gson.GsonProperties
spring.gson.generateNonExecutableJsonWhether to generate non executable JSON by prefixing the output with some special text.
spring.gson.excludeFieldsWithoutExposeAnnotationWhether to exclude all fields from consideration for serialization or deserialization that do not have the “Expose” annotation.
spring.gson.serializeNullsWhether to serialize null fields.

codec属性

属性描述
spring.codecjar包:org.springframework.boot:spring-boot-autoconfigure
类名:org.springframework.boot.autoconfigure.codec.CodecProperties
spring.codec.logRequestDetailsWhether to log form data at DEBUG level, and headers at TRACE level.
spring.codec.maxInMemorySize.bytesLimit on the number of bytes that can be buffered whenever the input stream needs to be aggregated.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值