cutomers -- REST endpoint/ui/admin -- Web 我想设置安全性,这样所有从/ui/**开始的web都会被重定向到登录页面使用以下设置时,不允许登录页面,并发送带有标题的401: @Configuration@RequiredArgsConstructor
class RestConfigurationAdapter我希望被重定向到<e
我想用Spring Boot和Angular登录,但我得到了"ERR_TOO_MANY_REDIRECTS“行。在后台,有一个repsonse,它返回令牌、用户名、密码和角色。UsernameNotFoundException("User Name is not Found");
return new org.springframework.security.core.userdetails.User
无法从index.html导航到任何其他页面,当单击按钮导航时,将下载一个空白登录文件。我认为这个问题与安全文件有关,因为一开始我没有它,但在添加它之后,许多东西都被破坏了。login}" id = "LOGIN" class="active">Log In</a>@Configuration
public class Securityextends WebSecurityConfigurerAdapter