SEARCH BY

All

  • All
  • Java8
  • Spring

How to change application context path and default tomcat server port number in Spring Boot application

Post a Comment
add the following in the application.properties file

server.servlet.context-path=/jkl
server.port=${PORT:9090}

where url will be

http://localhost:9090/jkl is the end point for the application 



jaya
I love software designing, coding, writing and teaching...

Share this article

Related Posts

Post a Comment

Place your code in <em> </em> tags to send in comments | Do not add hyper links in commnet

Close

Subscribe our newsletter for the latest articles directly into your email inbox