How to deploy war file in root(/) context to Wildfly ver 9.0.1

后端 未结 6 747
無奈伤痛
無奈伤痛 2021-02-07 10:49

I am newbie for Wildfly till now I was working on tomcat to deploy my applications. Now just for add on features of Wildfly we want to move on to this. I am using Windows Os, I

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 11:11

    If you are using Maven to deploy your application, you can change the default war file name in your pom.xml to ROOT like this:

    ...
    
    
        
        ROOT
    

    When you deploy your application using Maven, Wildfly will automatically host it under /. This way, you prevent changing the name of the war file yourself.

提交回复
热议问题