我有一个由antMatchers() (如.antMatchers("/api/myProtectedUri/*").authenticated() )配置的spring安全性保护的后端@ExceptionHandler({RuntimeException.class})
public ResponseEntityResponseEntity.status(
该应用程序有两种类型的HTTP内容:" API " a REST和"UI" --一种基于web的已使用接口(Thymeleaf + Spring )。应用程序的REST的大多数端点都是安全的,使用Basic,但有些端点是不可用的,而且应该总是可用。) .authorizeRequests()
.antMatchers("/api/