美文网首页
基于MAVEN的编译运行及打包

基于MAVEN的编译运行及打包

作者: wencai | 来源:发表于2017-11-28 16:06 被阅读0次

一、配置编译环境

选择菜单栏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:

相关文章

网友评论

      本文标题:基于MAVEN的编译运行及打包

      本文链接:https://www.haomeiwen.com/subject/yulebxtx.html