How to Change the Default Port in Spring Boot

Published: 01 March 2024
on channel: Java Guides
2,974
196

How to Change the Default Port in Spring Boot
Learn how to change the default port in Spring Boot from 8080 to any custom port. Simply add the following line to your application.properties or application.yml file:

For application.properties: server.port=9090
For application.yml: server: port: 9090
This quick and easy step helps you configure your Spring Boot application to run on any desired port.

#java #interview #springboot #javaguides #codingtips #springframework #javaprogramming


Watch video How to Change the Default Port in Spring Boot online without registration, duration hours minute second in high quality. This video was added by user Java Guides 01 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,974 once and liked it 196 people.