The configuration of the port in spring boot stepping yml is invalid, restart tomcat port number is still 8080

application.yml 载 图
The specified port of spring boot is nothing more than the configuration file and code changes, but it is recommended to modify the configuration file, but I explicitly entered server: port: 8004 to restart the tomcat port or 8080?

After repeated experiments, I finally found the key to this wonderful problem, so I wrote a few words and shared them with friends who stepped on the pit. .

Normal picture
The style is very obvious, the color of the text is different from the picture above, the port is orange. The problem is the colon: a space is needed afterwards.
After re-cleaning, the port number of run main is normal, and the problem is solved.

Finally, I am Li Chenfeng, a full-stack small program development engineer in Guangzhou, and my hometown is Yangjiang, Guangdong. QQ: 571567609
outsourcing, small function development, and so on. Sincerely at your service.

Published 3 original articles · Likes0 · Visits 198

Guess you like

Origin blog.csdn.net/qq_571567609/article/details/105359324