Springboot configuration project access path URL root path

1.SpringBoot in 2.0 before the version usedserver.context-path

server.context-path=/api

2.SpringBoot in the version after 2.0 useserver.servlet.context-path

server.servlet.context-path=/api

Read More: