Maven: How to rename the war file for the project?

前端 未结 4 642
广开言路
广开言路 2020-12-02 08:10

I have a project bird with following components in pom.xml

   com.myorg
    bird&l         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 08:33

    You can follow the below step to modify the .war file name if you are using maven project.

    Open pom.xml file of your maven project and go to the tag ,

    1. In that give your desired name between this tag : .

      ex. : krutik

      After deploying this .war you will be able to access url with:
      http://localhost:8080/krutik/

    2. If you want to access the url with slash '/' then you will have to specify then name as below:

      e.x. : krutik#maheta

      After deploying this .war you will be able to access url with:
      http://localhost:8080/krutik/maheta

提交回复
热议问题