Intellij Idea 社区版中的 Tomcat [英] Tomcat in Intellij Idea Community Edition
本文介绍了Intellij Idea 社区版中的 Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 Intellij Idea Community Edition 中使用 Tomcat 服务器运行 Web 应用程序?
Is it possible to run a web application using Tomcat Server in Intellij Idea Community Edition?
我试图找到一些关于它的信息,但没有取得任何成功.
I tried to find some information about it but haven't achived any success.
推荐答案
如果你使用的是 maven,你可以使用这个命令 mvn tomcat:run
,但首先你在你的 pom.xml 中添加这个结构化成构建标签,就像这样:
If you are using maven, you can use this command mvn tomcat:run
, but first you add in your pom.xml this structure into build tag, just like this:
<build>
<finalName>mvn-webapp-test</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
这篇关于Intellij Idea 社区版中的 Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文