S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How can you change the default port in a Spring Boot application?

  • (A) Change in server.xml
  • (B) Use @ServerPort annotation
  • (C) Set server.port in application.properties
  • (D) Modify application.java
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
You can override the default port using 'server.port=9090' in application.properties.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.