idea 将 sprintboot 打包war 部署 tomca
作者:
抬头丶看天空 | 来源:发表于
2021-09-15 10:52 被阅读0次
1、server.xml 端口修改
<Connector port="8099" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
外部tomcat 启动 配置 启动类 SpringBootStartApplication.java
package top.goods;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* @Package: top.goods
* @ClassName: SpringBootStartApplication
* @Author: cyy
* @CreateDate: 2021/5/7 18:33
* @Version: 1.0
*/
public class SpringBootStartApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}
}
本文标题:idea 将 sprintboot 打包war 部署 tomca
本文链接:https://www.haomeiwen.com/subject/faekgltx.html
网友评论