Change the URL of the application of Eclipse project (Maven).

When I changed the original Eclipse project to Maven, I gave it a proper name, so the original URL changed. Thanks to that, the app did not work well: sweat_smile :, I have left the solution as a memorandum.

What I want to do this time.

スクリーンショット (12).png

↑ Where the URL of the top page when opening the application is "localhost: 8080 / test1 </ font> /", "localhost: 8080 / <font color =" Blue "" I want to fix it to "> docoTsubu2 </ font> /" ↓.

スクリーンショット (11).png

--Rewrite pom.xml under the project. --Rewrite the contents of xxx </ / artifactId>. <img width = "617" alt = "Screenshot (8) .png " src = "https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/420031/1329794d-9f72" -45d6-5a48-e642bd4625da.png ">

--Change context root --Change the contents of the project "Right click"-> "Properties"-> "Web project settings"-> "Context root:" and click "Adapt" to close. <img width = "786" alt = "Screenshot (6) .png " src = "https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/420031/fa675c3f-0465" -cad0-4849-48707fc1200e.png ">

--Change context root path stored in Tomcat --Open "Servers Project" --Open "Server.xml" --From the "Node" column, open in the order of "Server"-> "Service"-> "Engine"-> "Host"-> "Context". --Change the content part of "Path" in the node column. Screenshot (9) .png

--Finally, save your changes and run the app to verify that the URL has changed.

Recommended Posts

Change the URL of the application of Eclipse project (Maven).
[Eclipse] Change the color of the vertical ruler
[Swift] Change the textColor of UIDatePicker
Added slf4J + logback to Eclipse Maven project
Bootstrap4 Change the color of the hamburger menu
[Rails] Change the label name of f.label
[Swift] Change the color of SCN Node
[Rails] Get the path name of the URL before the transition and change the link destination
[Laravel] Command memorandum until the start of the project
Change the timezone of the https-portal container to JST
[Eclipse / Tomcat] Servlet + JSP in Maven webapp project
Java Repository of Eclipse with Maven: Missing artifact ~
How Microservices Change the Way of Developing Applications
[AndroidStudio] Change the color of the ActionBarDrawerToggle hamburger menu
Change the location folder of Docker image & container
When the project is not displayed in eclipse
[Java] How to get the URL of the transition source
Get the URL of the HTTP redirect destination in Java
When the hover of Eclipse is hard to see
Docker the development environment of Ruby on Rails project
<Android> Change the background color of the List row of ListView
[Rails] How to change the column name of the table
[Rails] Cancel / change the default password validation of devise
Change the storage quality of JPEG images in Java
Roughly the flow of web application development with Rails.
Check the rate limit application status of docker pull
Get the URL of the HTTP redirect destination in Ruby
Replace only part of the URL host with java