一、配置编译环境
选择菜单栏Build下方的Edit configurations,打开如下界面:
点击"+"号,选择Application。在configuration选项卡选择入口类Main class。
在pom.xml文件中配置依赖包tomcat:spring-boot-starter-tomcat
二、用MAVEN打包
1.在pom.xml中配置maven包:maven-jar-plugin、maven-compiler-plugin
2.通过idea执行maven package:
网友评论