How to config tomcat like this in IDEA?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 06:35:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!