手把手教你把springboot项目打包成war包

前提

你这个项目可以正常运行起来;


1、在pom.xml里面添加打包成war的标志

 
    war

手把手教你把springboot项目打包成war包_第1张图片

2、去掉嵌入式的Tomcat的代码 ;

之前


			org.springframework.boot
			spring-boot-starter-web
			
			
	        	
		            org.springframework.boot
		            spring-boot-starter-tomcat
		        
		    
		

移除之后


			org.springframework

你可能感兴趣的:(springboot菜鸟教程)