S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How can you change the embedded server port in Spring Boot?

  • (A) Set server.port in application.properties
  • (B) Use @Port annotation
  • (C) Modify server.xml
  • (D) It cannot be changed
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey

The property server.port can be set in application.properties to change the server port.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.