Why does Intellij-IDEA ignore my tomcat/conf/server.xml Context tag?

后端 未结 4 1193
天命终不由人
天命终不由人 2020-11-29 04:29

In my $TOMCAT_HOME/conf/server.xml I put this near the bottom:

...

                   


        
4条回答
  •  伪装坚强ぢ
    2020-11-29 05:10

    I was need ROOT context in Tomcat/IntelliJ, so in server.xml in Host tag, add specific Context :

    
    

    In intelliJ 11.1.5, in Server tab panel check box "Deploy applications configured in Tomcat instance", IntelliJ will copy server.xml in folder deployment :

    C:\Users\{Username}\.IntelliJIdea11\system\tomcat\Unnamed_Product_2\conf"
    

    Now I can access to resources in Root domain, by example crossdomain.xml :

    http://localhost:8080/crossdomain.xml
    

提交回复
热议问题