Run app in tomcat using maven with IntelliJ

前端 未结 3 1455
情歌与酒
情歌与酒 2021-02-07 11:52

Without using maven, to run the app on tomcat from the Intellij IDE, all you have to do is create an artifact and a \"tomcat\" run configuration pointing to that artifact, this

3条回答
  •  既然无缘
    2021-02-07 12:27

    In pom.xml add

    
                
                    org.apache.tomcat.maven
                    tomcat7-maven-plugin
                    2.2
                    
                        UTF-8
                        /your-path
                        true
                    
                
    
    

    In IntelliJ, open Menu > View > Tool Windows > Maven Projects

    Plugins > tomcat7 > tomcat7:run
    

提交回复
热议问题