Spring-Boot初学之配置文件application.properties(web性能)
来源:互联网 发布:淘宝双十一魔盒怎么用 编辑:程序博客网 时间:2024/06/05 21:51
Spring-Boot配置文件web性能(服务器)配置项(常用配置项为红色)
text / html,text / css,application / json
server.compression.min-response-size执行压缩所需的最小响应大小。例如2048服务器connection-timeout连接器在关闭连接之前等待另一个HTTP请求的时间(以毫秒为单位)。未设置时,将使用连接器的容器特定默认值。使用-1表示no(即无限)超时server.context-parameters.*Servlet上下文初始化参数。例如server.context-parameters.a = alpha
server.context-path应用程序的上下文路径server.display-name = application显示应用程序的名称server.max-http-header-size = 0HTTP消息头的最大大小(以字节为单位)server.error.include-stacktrace = never何时添加“stacktrace” 属性server.error.path = / error错误控制器的路径server.error.whitelabel.enabled = true在服务器发生错误的情况下,启用浏览器中显示的默认错误页面server.jetty.acceptors要使用的接受者线程数server.jetty.max-http-post-size = 0HTTP发布或放置内容的最大大小(以字节为单位)server.jetty.selectors要使用的选择器线程数server.jsp-servlet.class-name = org.apache.jasper.servlet.JspServletJSP servlet的类名server.jsp-servlet.init-parameters.*用于配置JSP Servlet 服务器的Init参数jsp-servlet.registered = true是否注册了JSP servletserver.port = 8080Server HTTP端口server.server-header用于服务器响应头的值(没有头发送为空)server.servlet-path = /主调度程序servlet的路径server.use-forward-headers如果X-Forwarded- *头应该应用于HttpRequestserver.session.cookie.comment会话cookie的注释。server.session.cookie.domain会话cookie的域server.session.cookie.http-only“HttpOnly”会话cookie的标志server.session.cookie.max-age会话cookie的最大年龄(以秒为单位)server.session.cookie.name会话cookie名称server.session.cookie.path会话cookie的路径server.session.cookie.secure“安全”标志为会话cookieserver.session.persistent = false重新启动之间持续会话数据server.session.store-dir用于存储会话数据的目录server.session.timeout会话超时(秒)server.session.tracking-modes会话跟踪模式(以下一个或多个:“cookie”,”url”, “ssl”)server.ssl.ciphers支持SSL加密server.ssl.client-auth是否是想客户认证(“想要”)或需要(“需要”)需要信任存储server.ssl.enabled启用SSL的支持server.ssl.enabled-protocols启用SSL协议server.ssl.key-alias标识密钥存储区中的密钥的别名server.ssl.key-password用于访问密钥存储区中的密钥的密码server.ssl.key-store认为SSL证书的密钥存储路径(通常是 jks 文件)server.ssl.key-store-password用于访问密钥库的密码server.ssl.key-store-provider密钥存储的提供者server.ssl.key-store-type密钥存储的类型server.ssl.protocol = TLSSSL协议使用server.ssl.trust-store保存SSL证书的Trust存储server.ssl.trust-store-password用于访问信任存储的密码server.ssl.trust-store-provider信任存储的提供者server.ssl.trust-store-type信任存储的类型server.tomcat。accept-count所有可能的请求处理线程正在使用时,传入连接请求的最大队列长度server.tomcat.accesslog.buffered = true缓冲区输出,使其只被定期刷新server.tomcat.accesslog.directory = logs创建日志文件的目录可以相对于tomcat base dir或absoluteserver.tomcat.accesslog.enabled = false启用访问日志server.tomcat.accesslog.file-date-format = .yyyy-MM-dd要在日志文件名中放置的日期格式server.tomcat.accesslog.pattern = common访问日志的格式模式server.tomcat.accesslog.prefix = access_log日志文件名前缀server.tomcat.accesslog.rename-on-rotate = false将文件名中的日期戳延迟到旋转时间server.tomcat.accesslog.request-attributes-enabled = false设置请求的IP地址,主机名,协议和端口的请求属性server.tomcat.accesslog.rotate = true启用访问日志轮换server.tomcat.accesslog.suffix = .log日志文件名后缀server.tomcat.additional-tld-skip-patterns匹配要忽略TLD扫描的jar的附加模式的逗号分隔列表server.tomcat.background-processor-delay = 30在调用backgroundProcess方法之间以秒为单位的延迟server.tomcat.basedirTomcat基本目录。如果未指定,将使用临时目录server.tomcat.max-connections服务器在任何给定时间接受和处理的最大连接数server.tomcat.max-http-post-size = 0HTTP帖子内容的最大大小(以字节为单位)server.tomcat.max-threads = 0最大工作线程数server.tomcat.min-spare-threads = 0最小工作线程数server.tomcat.port-header = X-Forwarded-Port用于覆盖原始端口值的HTTP头的名称server.tomcat.protocol-header保存传入协议的头,通常命名为“X-Forwarded-Proto”server.tomcat.protocol-header-https-value = https指示传入请求使用SSL的协议头的值server.tomcat.redirect-context-root是否通过在路径上附加/重定向到上下文根的请求server.tomcat.remote-ip-header从中提取远程ip的HTTP头的名称。例如X-FORWARDED-FOR
server.tomcat.uri-encoding = UTF-8用于解码URI的字符编码server.undertow.accesslog.dir访问日志目录server.undertow.accesslog.enabled = false启用访问日志server.undertow.accesslog.pattern = common访问日志的格式模式server.undertow.accesslog.prefix = access_log.日志文件名前缀server.undertow.accesslog.rotate = true启用访问日志轮换server.undertow.accesslog.suffix = log日志文件名后缀server.undertow.buffer-size每个缓冲区的大小(以字节为单位)server.undertow.direct-buffers在Java堆之外分配缓冲区server.undertow.io-threads为工作者创建的I / O线程数server.undertow.max-http-post-size = 0HTTP帖子内容的最大大小(以字节为单位)server.undertow.worker-threads工作线程数 阅读全文
0 0
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring-Boot初学之配置文件application.properties(thymeleaf模板)
- Spring-Boot初学之配置文件application.properties(数据源配置)
- Spring boot配置文件 application.properties
- Spring boot配置文件 application.properties
- Spring Boot配置文件 application.properties
- spring boot配置文件application.properties
- Spring boot配置文件application.properties
- spring boot配置文件application.properties
- 【springboot】Spring boot配置文件 application.properties
- Spring boot 配置文件application.properties属性
- spring boot-application.properties配置文件属性
- Spring-Boot (二) application.properties配置文件内容
- spring boot-application.properties配置文件属性
- Spring Boot配置文件application properties配置详解
- spring-boot(0) application.properties配置文件和自定义配置文件
- spring boot默认配置文件application.properties的属性读取
- bzoj3270
- Tomcat的access log的设置及存放日志路径修改
- 【LeetCode】Missing Integer第一个丢失的整数
- angvec2tr
- ZigBee CC2530 Z-Stack 26 大规模组网实验(暂50个节点)
- Spring-Boot初学之配置文件application.properties(web性能)
- SOA之企业应用集成EAI
- CSS总结-------伪元素
- Array Challenge
- < 笔记 > Python
- SVN简介
- 菲波那切数列解法
- hdu 3342 Legal or Not
- ZooKeeper(3.4.5) 使用Curator监听事件