【发布时间】:2023-03-31 14:23:01
【问题描述】:
这条消息说:Required authorization. To access on the server http://localhhost:8080 you should enter login and password. Server message: Spring。
我正在使用 Hibernate 4、Spring 4 和 Gradle。另外,我正在使用 Spring Boot。但即使我从tutorial 获得了飞机代码,也会出现此消息。是什么导致它以及如何摆脱它?怎么了?控制台中没有错误消息。
【问题讨论】:
-
你只是想访问
http://localhhost:8080吗?如果是 tomcat,则 tomcat 服务器要求您输入管理员凭据 -
@Chaitanya,我正在使用 Spring Boot。我正在尝试访问 localhost:8080/index,映射页面
-
这是弹簧安全功能。编辑你的security.xml(取自web.xml)文件。
标签: java spring hibernate spring-mvc