美文网首页
idea 将 sprintboot 打包war 部署 tomca

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