SpringBoot配置属性之Server参数
server配置
server.address
指定server绑定的地址
server.compression.enabled
是否开启压缩,默认为false.
server.compression.excluded-user-agents
指定不压缩的user-agent,多个以逗号分隔,默认值为:text/html,text/xml,text/plain,text/css
server.compression.mime-types
指定要压缩的MIME type,多个以逗号分隔.
server.compression.min-response-size
执行压缩的阈值,默认为2048
server.context-parameters.[param name]
设置servlet context 参数
server.context-path
设定应用的context-path.
server.display-name
设定应用的展示名称,默认: application
server.jsp-servlet.class-name
设定编译JSP用的servlet,默认: org.apache.jasper
.servlet.JspServlet)
server.jsp-servlet.init-parameters.[param name]
设置JSP servlet 初始化参数.
server.jsp-servlet.registered
设定JSP servlet是否注册到内嵌的servlet容器,默认true
server.port
设定http监听端口
server.servlet-path
设定dispatcher servlet的监听路径,默认为: /
cookie、session配置
server.session.cookie.comment
指定session cookie的comment
server.session.cookie.domain
指定session cookie的domain
server.session.cookie.http-only
是否开启HttpOnly.
server.session.cookie.max-age
设定session cookie的最大age.
server.session.cookie.name
设定Session cookie 的名称.
server.session.cookie.path
设定session cookie的路径.
server.session.cookie.secure
设定session cookie的“Secure” flag.
server.session.persistent
重启时是否持久化session,默认false
server.session.timeout
session的超时时间
server.session.tracking-modes
设定Session的追踪模式(cookie, url, ssl).
ssl配置
server.ssl.ciphers
是否支持SSL ciphers.
server.ssl.client-auth
设定client authentication是wanted 还是 needed.
server.ssl.enabled
是否开启ssl,默认: true
server.ssl.key-alias
设定key store中key的别名.
server.ssl.key-password
访问key store中key的密码.
server.ssl.key-store
设定持有SSL certificate的key store的路径,通常是一个.jks文件.
server.ssl.key-store-password
设定访问key store的密码.
server.ssl.key-store-provider
设定key store的提供者.
server.ssl.key-store-type
设定key store的类型.
server.ssl.protocol
使用的SSL协议,默认: TLS
server.ssl.trust-store
持有SSL certificates的Trust store.
server.ssl.trust-store-password
访问trust store的密码.
server.ssl.trust-store-provider
设定trust store的提供者.
server.ssl.trust-store-type
指定trust store的类型.
tomcat
server.tomcat.access-log-enabled
是否开启access log ,默认: false)
server.tomcat.access-log-pattern
设定access logs的格式,默认: common
server.tomcat.accesslog.directory
设定log的目录,默认: logs
server.tomcat.accesslog.enabled
是否开启access log,默认: false
server.tomcat.accesslog.pattern
设定access logs的格式,默认: common
server.tomcat.accesslog.prefix
设定Log 文件的前缀,默认: access_log
server.tomcat.accesslog.suffix
设定Log 文件的后缀,默认: .log
server.tomcat.background-processor-delay
后台线程方法的Delay大小: 30
server.tomcat.basedir
设定Tomcat的base 目录,如果没有指定则使用临时目录.
server.tomcat.internal-proxies
设定信任的正则表达式,默认:“10\.\d{1,3}\.\d{1,3}\.\d{1,3}| 192\.168\.\d{1,3}\.\d{1,3}| 169\.254\.\d{1,3}\.\d{1,3}| 127\.\d{1,3}\.\d{1,3}\.\d{1,3}| 172\.1[6-9]{1}\.\d{1,3}\.\d{1,3}| 172\.2[0-9]{1}\.\d{1,3}\.\d{1,3}|172\.3[0-1]{1}\.\d{1,3}\.\d{1,3}”
server.tomcat.max-http-header-size
设定http header的最小值,默认: 0
server.tomcat.max-threads
设定tomcat的最大工作线程数,默认为: 0
server.tomcat.port-header
设定http header使用的,用来覆盖原来port的value.
server.tomcat.protocol-header
设定Header包含的协议,通常是 X-Forwarded-Proto,如果remoteIpHeader有值,则将设置为RemoteIpValve.
server.tomcat.protocol-header-https-value
设定使用SSL的header的值,默认https.
server.tomcat.remote-ip-header
设定remote IP的header,如果remoteIpHeader有值,则设置为RemoteIpValve
server.tomcat.uri-encoding
设定URI的解码字符集.
undertow
server.undertow.access-log-dir
设定Undertow access log 的目录,默认: logs
server.undertow.access-log-enabled
是否开启access log,默认: false
server.undertow.access-log-pattern
设定access logs的格式,默认: common
server.undertow.accesslog.dir
设定access log 的目录.
server.undertow.buffer-size
设定buffer的大小.
server.undertow.buffers-per-region
设定每个region的buffer数
server.undertow.direct-buffers
设定堆外内存
server.undertow.io-threads
设定I/O线程数.
server.undertow.worker-threads
设定工作线程数
SpringBoot配置属性之Server参数的更多相关文章
- SpringBoot配置属性之Server
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之NOSQL
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MVC
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性转载地址
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之其他
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之Migration
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之Security
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MQ
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性二
server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...
随机推荐
- 前端每日实战:136# 视频演示如何用 D3 和 GSAP 创作一个横条 loader
效果预览 按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以全屏预览. https://codepen.io/comehope/pen/pOZKWJ 可交互视频 此视频是可 ...
- pt-online-schema-change在线修改脚本
pt-online-schema-change在线修改脚本 经过几次在测试环境中使用,发现5.6和5.7可以正常使用.mysql8.0.18版本中,竟然无法使用,感到惊讶.难道mysql8.0.18强 ...
- C++ std::vector 总结笔记
Initialization #include<iostream> #include<vector> using namespace std; int main() { vec ...
- 【curl】cookie的分隔符
cookie是以分号作为分隔符的. ex: curl --silent -H "Host: xxx.com" "172.172.178.9:80/item/comm?pi ...
- mysql分组排序加序号
参照https://www.cnblogs.com/CharlieLau/p/6737243.html 一.需求 新加一个Sort 字段,初始值为1,按照parentID分组添加sort值. 根据原数 ...
- GO语言学习笔记2-int类型的取值范围
相比于C/C++语言的int类型,GO语言提供了多种int类型可供选择,有int8.int16.int32.int64.int.uint8.uint16.uint32.uint64.uint. 1.i ...
- windows10 下 gcc/g++ 的安装
一.gcc的下载 网址:www.mingw.org ,点击右上方的 download installer 二.安装 打开安装程序,默认安装,弹出下列界面 找到mingw32-gcc-g++(注意cla ...
- AtCoder AGC002E Candy Piles (博弈论)
神仙题..表示自己智商不够想不到... 好几次读成最后拿的赢了,导致一直没看懂题解... 题目链接: https://atcoder.jp/contests/agc002/tasks/agc002_e ...
- StringBuffer的s1.capacity()是多少?
定义有StringBuffer s1=new StringBuffer(10);s1.append(“1234”)则s1.length()和s1.capacity()分别是多少? StringBuff ...
- bootstrap基础讲解
Bootstrap基础简介 网站链接: http://www.bootcss.com/ bootstrap优点: 下载: bootstrap的引入: <meta name="view ...