Jboss部署在SpringBoot
1、安装对应版本JbossTools
2、添加servlet依赖
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
3、在SpringBoot的pom.xml内部去掉tomcat的依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
4、项目的启动类修改为
@SpringBootApplication
public class xxxdApplication extends SpringBootServletInitializer{<