When i created a new project of springboot. then changed the port number from 8080 to 8081. eventually run my application. but it doesn't work. through check and find due to not exist blank between server  port and port number. like  below:

In the springboot project changed port in the application.yml but it is doesn‘t work

After mended like below. I can run my application with port 8081 and work is fine.

 

In the springboot project changed port in the application.yml but it is doesn‘t work

Above two pictures you can see something that In last picture between port and number exist a blank . And you can see that the front colors both two pictures are different . As like last picture that is correct way to change different port to run Application.

相关文章: