天天看點

idea打包springboot項目 war

這是我建立的項目

idea打包springboot項目 war

首先pom的jar改為war

idea打包springboot項目 war

接着把項目起來

點build---build art…

idea打包springboot項目 war

點rebuild

idea打包springboot項目 war

WAR就出來了

idea打包springboot項目 war

自定義war包名

1、

idea打包springboot項目 war
idea打包springboot項目 war

 取個名字

idea打包springboot項目 war

2、for 剛剛取的項目名

idea打包springboot項目 war
idea打包springboot項目 war

3、rebuild一下

idea打包springboot項目 war

打好的war在這個路徑下面

idea打包springboot項目 war

這樣就ok了

idea打包springboot項目 war

繼續閱讀