Separating war application name from war file name

后端 未结 7 2285
一个人的身影
一个人的身影 2020-12-05 06:50

Currently if i deploy a war file on tomcat named say myapp.war, I can access its url by http://localhost/myapp/MyServlet.

However what I want is to depl

相关标签:
7条回答
  • 2020-12-05 07:50

    I prefer to use "##" symbols for noting version of *.war files in the tomcat.
    For example:
    myapp.war -> URL: http://localhost:8080/myapp/MyServlet
    myapp##1.1.0 -> URL: http://localhost:8080/myapp/MyServlet (still the same, because all symbols after "##" are ignoring by tomcat)

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