We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Boot
TongWeb7
jar
war
<packaging>war</packaging>
SpringBootServletInitializer
两种方式选其一
public class DemoApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } // 增加configure实现 @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { return builder.sources(DemoApplication.class); } }
public class Demo extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { return builder.sources(DemoApplication.class); } }
Spring Boot适配TongWeb7只需要更改打包方式,打包成war部署,与Tomcat的war包并无差别
Tomcat
在创建虚拟主机,只需设置好主机名称即可(每个服务或应用对应一个虚拟主机)
这三个地方设置后就一直点下一步完成创建即可
开始部署
服务http路径 http://ip:port/应用前缀,port 是创建http通道时设置的监听端口
http://ip:port/应用前缀
port
TongWeb
logs/server.log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
项目适配
修改pom文件,
jar
->war
继承配置
SpringBootServletInitializer
两种方式选其一
TongWeb 部署war
创建虚拟主机
在创建虚拟主机,只需设置好主机名称即可(每个服务或应用对应一个虚拟主机)
创建http通道
服务部署
war
包开始部署
war
服务日志在TongWeb
目录下的logs/server.log
中The text was updated successfully, but these errors were encountered: