2020
10-10
10-10
springboot配置嵌入式servlet容器的方法
配置嵌入式Servlet容器springboot默认tomcat为嵌入式servlet容器,所以不用在配置tomcat。1.如何定制修改servlet容器?1.在applicatio.properties里修改和server有关的配置(推荐)如:server.tomcatserver.tomcat.connection-timeout=连接超时时间server.tomcat.uri-encoding=UTF-8修改编码server.servlet.XXX通用servlet容器设置server.tomcatXXX一般是Tomcat的设置2.通过代码的方式修改配置-编写一个配置类@Configuration...
继续阅读 >