【发布时间】:2020-02-01 05:47:20
【问题描述】:
我正在使用 Spring Boot,并且正在使用 spring-data-rest-hal-browser,一切似乎都很好,除非我尝试点击 URL:localhost:8080 我被重定向到 http://localhost:8080/login 使用HAL 浏览器导航我的端点,然后我得到一个屏幕,要求输入我没有的用户和密码。
登录 Spring Security 的默认凭据是什么?如何更改它们或禁用登录选项?
这是我正在使用的依赖项:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-browser</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
这是登录屏幕:
【问题讨论】:
标签: java spring spring-boot hateoas