美文网首页
springboot 的配置项

springboot 的配置项

作者: 良人与我 | 来源:发表于2019-04-27 15:10 被阅读0次

    https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
    This sample file is meant as a guide only. Do not copy and paste the entire content into your application. Rather, pick only the properties that you need.
    例如给出了写 tomcat 的配置推荐,备注下。

    server.tomcat.max-connections=10000 # Maximum number of connections that the server accepts and processes at any given time.
    server.tomcat.max-http-post-size=2MB # Maximum size of the HTTP post content.
    server.tomcat.max-swallow-size=2MB # Maximum amount of request body to swallow.
    server.tomcat.max-threads=200 # Maximum amount of worker threads.
    server.tomcat.min-spare-threads=10 # Minimum amount of worker threads.
    server.tomcat.port-header=X-Forwarded-Port # Name of the HTTP header used to override the original port value.
    server.tomcat.protocol-header= # Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
    server.tomcat.protocol-header-https-value=https # Value of the protocol header indicating whether the incoming request uses SSL.
    server.tomcat.redirect-context-root=true # Whether requests to the context root should be redirected by appending a / to the path.
    server.tomcat.remote-ip-header= # Name of the HTTP header from which the remote IP is extracted. For instance, `X-FORWARDED-FOR`.
    server.tomcat.resource.allow-caching=true # Whether static resource caching is permitted for this web application.
    server.tomcat.resource.cache-ttl= # Time-to-live of the static resource cache.
    server.tomcat.uri-encoding=UTF-8 # Character encoding to use to decode the URI.
    

    相关文章

      网友评论

          本文标题:springboot 的配置项

          本文链接:https://www.haomeiwen.com/subject/tsdknqtx.html