Spring boot how to modify the default tomcat server port 8030

Spring boot how to modify the default tomcat server port 8030

 

In the src / main / resource application.properties new configuration file, add in the file

server.port=8030

You can modify the default port is 8030 Springboot

 

Note: src / main / resource directory had no need to create a new, and this time found the color src resource directory / main / java different colors, because new resource for the general directory, java defaults to the source directory, you need to transform into a resource source directory, right click and choose Mark directory as-> sources root to this resource directory to source directory

Guess you like

Origin www.cnblogs.com/daemonzd47/p/11924259.html