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. 1565: [NOI2009]植物大战僵尸 - BZOJ

    Description Input Output仅包含一个整数,表示可以获得的最大能源收入.注意,你也可以选择不进行任何攻击,这样能源收入为0.Sample Input3 210 020 0-10 0 ...

  2. Codeforces Round #278 (Div. 2)

    题目链接:http://codeforces.com/contest/488 A. Giga Tower Giga Tower is the tallest and deepest building ...

  3. 【BZOJ】【3530】【SDOI2014】数数

    AC自动机/数位DP orz zyf 好题啊= =同时加深了我对AC自动机(这个应该可以叫Trie图了吧……出边补全!)和数位DP的理解……不过不能自己写出来还真是弱…… /************* ...

  4. 简单的表视图UITableView

    1.建一个Single View application 2.在故事板中放置一个Table View控件 3.在.h文件中加入协议 <UITableViewDataSource,UITableV ...

  5. HttpWatch 安装后在IE上打开

    启动浏览器, 在空白地方左键,  显示出菜单栏 菜单栏中选择"查看">"浏览器栏">"HttpWatch"启动HttpWatch ...

  6. 浅谈ASP.NET报表控件

    OWC似乎使用者居多,但看见有网友在帖中抱怨OWC在使用时需要许可证书,于是将其排除,我可不想BOSS在看报表时弹出一个“没有许可证书”的窗口. 接着找到了ComponentOne的Web chart ...

  7. ibatis的iterate使用

    Iterate:这属性遍历整个集合,并为 List 集合中的元素重复元素体的内容. Iterate 的属性:       prepend  - 可被覆盖的 SQL 语句组成部分,添加在语句的前面(可选 ...

  8. Android Environment FAQ (Frequently Asked Question)

    1.how to find out the Eclipse Version From Eclipse Menu Help ----> About Eclipse It displayed as ...

  9. ZOJ3717 Balloon(2-SAT)

    一个很玄乎的问题,但听到2-SAT之后就豁然开朗了.题目的意思是这样的,给你n个点群,每个点群里面有两个点,你要在每个点群里面选一个点,以这些点做半径为r的圆,然后r会有一个最大值,问的就是怎么选这些 ...

  10. HDU 2955 Robberies (01背包,思路要转换一下,推荐!)

    题意: 小A要去抢劫银行,但是抢银行是有风险的,因此给出一个float值P,当被抓的概率<=p,他妈妈才让他去冒险. 给出一个n,接下来n行,分别给出一个Mj和Pj,表示第j个银行所拥有的钱,以 ...