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. .
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.