web applications - How do I choose the URL for my Spring Boot webapp? -
i using spring boot create web app, , not sure how change url localhost:8080
localhost:8080/mywebapp
.
i have seen lot of resources online referencing application.properties
file , adding classpath. but, i'm not sure put that.
questions
in
src/main/resources
?how assign url within file?
you need set property server.contextpath
/mywebapp
.
check out this part of documentation
the easiest way set property in properties file using (most application.properties
) spring boot provides whole lot of different way set properties. check out this part of documentation
Comments
Post a Comment