springboot上下文路径配置问题

在springboot1.5.9版本上,上下文配置需要下边的语句

server.context-path=/demo(上下文所需要添加的路径名)

在springboot2.2.1版本中,改成了下边这个,否则会报错

server.servlet.context-path=/demo

猜你喜欢

转载自blog.csdn.net/m0_67400972/article/details/124404994