SprintBoot JavaWeb访问提示 Full authentication is required to access this resource

SprintBoot部署好网站之后访问没有异常, 但是配置域名地址至Nginx上时登录请求报错了, 经查询是因为项目是前后端分离, 请求的路由会加上工程的主路径, 所以需要在Nginx多配置一个地址, 如

Location / {

  http://localhost:8080/project

}

location /project/ {

  http://localhost:8080/project/

}

posted @ 2023-06-19 12:08  DreamList  阅读(274)  评论(0)    收藏  举报