server.context-path不起作用的原因

 

在SpringBoot2.0.2版本之前  使用这个设置项目的访问路径是使用这个参数    例如:server.context-path =/boot

server.context-path =/boot

  

 但是在springBoot的版本升级到2.0.2版本之后 这个参数就不起作用了,改变成了 server.servlet.context-path=/boot才会起作用。

server.servlet.context-path=/boot

  

相关文章:

  • 2021-04-19
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2021-06-21
  • 2021-05-22
  • 2021-05-31
猜你喜欢
  • 2021-08-12
  • 2021-10-24
  • 2021-08-19
  • 2021-07-06
  • 2022-01-01
  • 2021-07-07
  • 2021-12-05
相关资源
相似解决方案