SpringBoot配置属性系列

另外附上个人关于springboot的一些文章

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.timeoutsession的超时时间

  • 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设定工作线程数

https://segmentfault.com/a/1190000004309751

SpringBoot配置属性之Server的更多相关文章

  1. SpringBoot配置属性之Server参数

    server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...

  2. SpringBoot配置属性转载地址

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  3. SpringBoot配置属性之其他

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  4. SpringBoot配置属性之Migration

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  5. SpringBoot配置属性之Security

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  6. SpringBoot配置属性之MQ

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  7. SpringBoot配置属性之NOSQL

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  8. SpringBoot配置属性之MVC

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  9. SpringBoot配置属性二

    server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...

随机推荐

  1. Vim实用命令

    [n]yy:从当前行复制n行 [n]p:粘贴n次 [n]dd:删除当前行往下的n行 /  : 向后查找 ?:向前查找 u → undo 撤销上一操作 <C-r> → redo 0 → 开启 ...

  2. messager(消息窗口)

    一.$.messager.alert()类似js中的alert('String') 方法参数:title, msg, icon, function(回调函数) 描述:title头部面板标题.msg主要 ...

  3. WEB实时聊天 comet推技术

    转自:http://www.cnblogs.com/wodemeng/archive/2012/04/06/2435302.html 今天晚上朋友遇到web服务端推技术的问题,自己就查了下资料,学习了 ...

  4. 你所必须掌握的三种异步编程方法callbacks,listeners,promise

    目录: 前言 Callbacks Listeners Promise 前言 coder都知道,javascript语言运行环境是单线程的,这意味着任何两行代码都不能同时运行.多任务同时进行时,实质上形 ...

  5. 802.11 wireless 二

    802.11 wireless 2wireless spectrum(无线频谱)1.无线网络使用RF(射频)信号2.无线电也是电磁波3.频谱基于波长被划分,归为多个类型4.无线网络被归为微波段(mic ...

  6. 【POJ】【2601】Simple calculations

    推公式/二分法 好题! 题解:http://blog.csdn.net/zck921031/article/details/7690288 这题明显是一个方程组……可以推公式推出来…… 然而这太繁琐了 ...

  7. [解决方案] 当 IDENTITY_INSERT 设置为 OFF 时

    当 IDENTITY_INSERT 设置为 OFF 时,不能为表 'tbUser' 中的标识列插入显式值. 解决:这个情况是你的表里面,有一列数据类型是IDENTITY的,也就是数据库自动递增列对于自 ...

  8. fiddler 新发现

    就一句话,记录一下 urlreplace baidu.com taobao.com //Fiddler2\Scripts\SampleRules.js 这里发现的 case "urlrepl ...

  9. 一个有趣的Ajax Hack示范

    今天在梦之光芒的BLOG上看见了一个Ajax Hack示范,其实跨站发现很容易,但是要做到大危害还是很难,偷偷COOKIE什么的只针对用户而已,XSS WORM的那种利用才是可怕的. 来看看他的一段V ...

  10. 如何开发一个自己的 RubyGem?

    「如何测试你的 RubyGem?」的前导文章 什么是 RubyGem RubyGem 是 Ruby 语言的标准源码打包格式. 大家一直都在用gem这个命令,但是很少有人知道这个东西是怎么来的,这里我从 ...