Intellij tomcat local run configuration - what happens behind the scenes?

前端 未结 1 877
[愿得一人]
[愿得一人] 2020-12-20 10:46

I\'ve been using tomcat run configuration without any problems - it does a excellent job. However I kind of don\'t like the fact that it is not documented anywhere (or is it

相关标签:
1条回答
  • 2020-12-20 11:12

    I'm using IntelliJ IDEA 15.0.3, Tomcat 8.0.15 and JDK 1.8.0_31

    This is an excerpt from C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\bin\idea.properties:

    #---------------------------------------------------------------------
    # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
    #---------------------------------------------------------------------
    # idea.system.path=${user.home}/.IntelliJIdea/system
    idea.system.path=D:/dev/IntelliJ-Settings/system
    

    In File --> Settings... --> Build, Execution, Deployment --> Application Servers I've defined this: (look at Tomcat base directory)

    D:\catalina-base-idea contains the global Tomcat configuration for IntelliJ.

    When I deploy my webapp using IntelliJ run configuration, the web app will be deployed to D:\dev\IntelliJ-Settings\system\tomcat (see idea.properties).

    The above explains question 1.

    Question 2: afaik, target is only used for building, not for deploying.

    Question 3: there is no manager app within D:\dev\IntelliJ-Settings\system\tomcat\webapps

    Question 4: logs are within D:\dev\IntelliJ-Settings\system\tomcat\webapps\yourApp . The global Tomcat config is located in D:\catalina-base-idea.

    You can configure the Tomcat for IntelliJ so that it uses a port other than 8080. So you can start your standard Tomcat and IntelliJ Tomact at the same time.

    0 讨论(0)
提交回复
热议问题