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

后端 未结 6 731
無奈伤痛
無奈伤痛 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:25

    To override the welcome webapp with Wildfly, you need to create a jboss-web.xml in the WEB-INF of your webapp with this content:

    
        /
    
    

    But if you try to access to the root directory (e.g. http://localhost:8080/) you will still have the default welcome content. To remove it, you just need to rename the directory welcome-content in the Wildfly directory.

提交回复
热议问题