最近启动springboot项目访问localhost老报找不到网页,找了很久发现yml配置文件中配置了“context.path”,只要在端口号后面加上context.path地址就可以访问了。

如图:

spring boot正常启动但是访问会找不到“ localhost 的网页”的错误

  直接访问http://localhost:9090/test就可以直接访问

 

相关文章:

  • 2021-10-16
  • 2021-09-07
  • 2021-07-06
  • 2021-07-09
  • 2021-06-11
猜你喜欢
  • 2021-07-06
  • 2021-06-27
  • 2022-01-15
  • 2022-02-21
  • 2021-12-05
  • 2021-12-21
  • 2022-01-18
相关资源
相似解决方案