问题
When I use the eclipse + tomcat, I can set "Use Tomcat installation" as the deployment location. I want ask whether it's possbile to config it in IDEA.
回答1:
If you configure your Tomcat application server like shown in the screenshot, IDEA will use the Tomcat binaries from "D:\Programme\apache-tomcat-8.0.15\bin" and the Tomcat configuration from "D:\catalina-base-idea\conf".
When you run "yourWebApp", IDEA will create a directory structure in the folder "\system\tomcat". This is the place where your application will be deployed to.
Update / another way for deploying
If you're familiar with maven, you can use the tomcat7-maven-plugin
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<!-- Tomcat 8 , too -->
<version>2.2</version>
<configuration>
<server>tomcat8-local</server>
<url>http://localhost:8080/manager/text</url>
<path>/doormanP0</path>
</configuration>
</plugin>
来源:https://stackoverflow.com/questions/30295466/how-to-config-tomcat-like-this-in-idea