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. js如何获取select下拉框的value以及文本内容

    select下拉框在项目开发中是经常用到的,特别是在联级菜单方面的应用更为广泛.但是,对于一些初学者来说,如何获取下拉框子节点option的value值和文本内容,还是有一点难度的.其他的就不说了,现 ...

  2. 增强学习————K-摇臂赌博机

    探索与利用增强学习任务的最终奖赏是在多步动作之后才能观察到,于是我们先考虑最简单的情形:最大化单步奖赏,即仅考虑一步操作.不过,就算这样,强化学习仍与监督学习有显著不同,因为机器要通过尝试来发现各个动 ...

  3. ASP.NET MVC 如何在一个同步方法(非async)方法中等待async方法

    问题 首先,在ASP.NET MVC 环境下对async返回的Task执行Wait()会导致线程死锁.例: public ActionResult Asv2() { //dead lock var t ...

  4. 异步HTTP请求

    一.自定义异步的HTTP请求 1.自定义一个AsyncHttpClient类,用于处理HTTP请求,实际原理就是新开启一个线程,调用HttpClient处理GET和POST请求 package com ...

  5. mysql查看连接数和状态,设置连接数和超时时间

    1.mysql> show status like '%connect%'; Connections,试图连接到(不管是否成功)MySQL服务器的连接数.   Max_used_connecti ...

  6. js添加事件、移除事件、阻止冒泡、阻止浏览器默认行为等写法(兼容IE/FF/CHROME)

    转自:http://blog.csdn.net/itchiang/article/details/7769341 添加事件   var addEvent = function( obj, type, ...

  7. [百度空间] [原] 全局operator delete重载到DLL

    由于很久没有搞内存管理了,很多细节都忘记了今天项目要用到operator delete重载到DLL,发现了问题,网上搜索以后,再对比以前写的代码,发现了问题:原来MSVC默认的operator new ...

  8. 使用Ext.Net时,配置文件的最简单写法

    使用Ext.Net时,配置文件的最简单写法 <?xml version="1.0" encoding="utf-8"?> <!-- 有关如何配 ...

  9. 对drupal的理解【转】

    写本文是想跟刚用drupal的朋友,分享一下心得,国内用drupal的太少了,希望大家能好好交流. 希望几分钟看完后你能马上上手drupal,至少能理解hook,api,theme,module,cc ...

  10. logback日志配置文件代码示例

    <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true&q ...