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

    • 设定Undertow access log 的目录,默认: logs
    • 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配置属性二的更多相关文章

  1. SpringBoot配置属性之Server

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

  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配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...

随机推荐

  1. 系统常用VC++运行时下载地址

    Microsoft Visual C++ 2005 Microsoft Visual C++ 2005 Redistributable Package (x86)  https://www.micro ...

  2. 获取url的参数

    function getPrams () { var url, urlPrams, urlPramsArr=[], item=[], prams={}; url = location.href; if ...

  3. 英特尔® Software Guard Extensions 教程系列:第一部分,英特尔® SGX 基础

    英特尔® Software Guard Extensions 教程系列:第一部分,英特尔® SGX 基础 from:https://software.intel.com/zh-cn/articles/ ...

  4. TEE&TrustZone

    一.TEE(Trusted Execution Environment) 1 A look back 1)2009 OMTP(Open Mobile Terminal Platform),首次定义了T ...

  5. action和servlet共存(转)

    转自:http://www.cnblogs.com/nayitian/archive/2013/03/04/2942537.html 问题 项目要求struts2和servlet能够共存,就是stru ...

  6. L88

    Where You Vote May Affect How You Vote On election day, where do you vote? If it's in a church, you ...

  7. 2018.3.3 How too much fructose may cause liver damage

    Fructose is the sweetest of the natural sugars. As its name suggests, it is found mainly in fruits. ...

  8. 消息队列:快速上手ActiveMQ消息队列的JMS方式使用(两种模式:Topic和Queue的消息推送和订阅)

    1.实现功能 希望使用一套API,实现两种模式下的消息发送和接收功能,方便业务程序调用 1.发送Topic 2.发送Queue 3.接收Topic 4.接收Queue 2.接口设计 根据功能设计公共调 ...

  9. tcpdump抓包工具用法说明

    tcpdump采用命令行方式对接口的数据包进行筛选抓取,其丰富特性表现在灵活的表达式上. 不带任何选项的tcpdump,默认会抓取第一个网络接口,且只有将tcpdump进程终止才会停止抓包. 例如: ...

  10. [转]提高 web 应用性能之 CSS 性能调优

    简介 Web 开发中经常会遇到性能的问题,尤其是 Web 2.0 的应用.CSS 代码是控制页面显示样式与效果的最直接“工具”,但是在性能调优时他们通常被 Web 开发工程师所忽略,而事实上不规范的 ...