tomcat配置文件

修改启动类文件,重配置一下tomcat

@Configuration
public class TomcatConfig { @Value("${server.http.port}") private int httpPort; @Bean public ServletWebServerFactory servletContainer() { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createStandardConnector()); // 添加http return tomcat; } private Connector createStandardConnector() { Connector connector = new Connector(TomcatServletWebServerFactory.DEFAULT_PROTOCOL); connector.setPort(httpPort); return connector; } }

 

tomcat配置文件

上一篇:网络服务器日志模块环境设置


下一篇:括号配对检测 A