腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
配置
问题
(
HttpSecurity
http
)
错误
:
无法
在
anyRequest
之后
配置
antMatchers
、
、
、
我试着做一个例子here link,我排除了所有可能的
错误
,但仍然是一个:
错误
: org.springframework.beans.factory.BeanCreationException: Errorafter
anyRequest
在
stacktrace的末尾: Caused by: java.lang.IllegalStateException: Can't configure
antMatchers
after
anyRequest
at org.sprin
浏览 375
提问于2020-01-16
得票数 0
2
回答
OAuth2既然WebSecurityConfigurerAdapter规则没有高于ResourceServerConfigurerAdapter的优先级,那么它的意义何在
、
、
我使用OAuth2进行授权,但我
在
WebSecurityConfigurerAdapter中找不到configure(
HttpSecurity
http
)覆盖的用法,因为它根本不会执行,因为ResourceServerConfigurerAdapter("/api/topics/**").permitAll(),我
在
WebSecurityConfigurerAdapter中的规则也不会被执行。
http
) throws Exception {
浏览 188
提问于2020-04-11
得票数 0
回答已采纳
2
回答
什么时候使用Security`s的antMatcher()?
、
、
我们什么时候使用antMatcher() vs
antMatchers
()?例如: .antMatcher("/high_level_url_A/**") .
antMatchers
("/high_level_url_A.somethingElse() .and() .antMatcher("
浏览 7
提问于2016-03-09
得票数 84
回答已采纳
1
回答
Spring引导:如何跳过特定端点的basic-auth
、
、
、
我
在
EmailsecurityAdapter.java类中有下面的代码} protected void configure(
HttpSecurity
http
) throws Exception {
http
.autho
浏览 0
提问于2019-09-13
得票数 0
回答已采纳
1
回答
Security IllegalStateException:
无法
在
anyRequest
之后
配置
anyRequest
、
、
、
我试图使用SpringBoot作为后端
配置
用户的角色,我的configure方法定义如下:protected void configure(
HttpSecurity
http
) throws("ADMINISTRADOR").
anyRequest
().authenticated() .
antMatchers
("/**").hasAnyAuthority("ADMINISTRADOR(unauthorizedE
浏览 7
提问于2020-12-08
得票数 0
回答已采纳
2
回答
如何在Spring Security中修复角色?
、
、
我正在尝试
在
我的项目中使用Spring Security,以下是代码:protected void configure(AuthenticationManagerBuilder auth.rolePrefix("ROLE_");protected void configure(
HttpSecurity
http
) throws Exception {()
浏览 1
提问于2017-03-28
得票数 1
2
回答
Spring Boot -如何在登录前显示静态资源?
好吧,我已经搜索了所有关于从spring boot应用程序提供静态资源的答案,但都没有解决我的
问题
。我尝试
在
我的登录页面上使用css样式表和图像,但是,它们
无法
加载。当我检查开发工具中的网络选项卡时,我看到从服务器得到了一个302响应,并且显示新位置是 我的想法是,由于我们
在
应用程序上的安全性,它
无法
访问文件。
浏览 0
提问于2018-06-23
得票数 0
7
回答
SpringSecurity401即使使用permitAll也是未经授权的
、
、
、
、
以下是安全
配置
类:@EnableWebSecurity protected void configure(
HttpSecurity
http
) throws Exception {
h
浏览 1
提问于2018-10-20
得票数 6
回答已采纳
1
回答
无法
向Spring资源服务器发送POST请求
、
、
、
我试图将一个POST请求发送到服务器端点之一(其中有@CrossOrigin注释),但是,我
在
控制台中得到了这个
错误
:Access-Control-Allow-Methods: POST Access-Control-Allow-Origin:
htt
浏览 3
提问于2019-10-20
得票数 0
回答已采纳
1
回答
弹簧安全保护的无效
配置
(
HttpSecurity
http
)请解释正确使用“和()”。什么意思?
、
、
我希望这个
问题
是突出的,对其他人有用的答案。参考资料:protected void configure(
HttpSecurity
http
)
http
.authorizeRequests().
anyReque
浏览 2
提问于2020-07-31
得票数 3
回答已采纳
4
回答
无法
在
antMatchers
后
配置
anyRequest
(多个antMatcher)
、
、
我正在尝试
配置
Security并获得以下
错误
: } protected void configure(
HttpSecurity</e
浏览 3
提问于2020-02-08
得票数 12
回答已采纳
3
回答
登录终结点返回403,禁止
在
邮局,但浏览器身份验证工作(Spring )
、
、
、
、
问题
是,每当我调用登录端点并传入凭据时,它都会返回一个403响应。这是我的春季安全
配置
public class SecurityConfig { @Autowired @Bean
浏览 8
提问于2022-10-08
得票数 1
回答已采纳
3
回答
弹簧引导安全块非RestController端点
、
、
我不希望启用基本身份验证,因为我已经
配置
了自己的身份验证。但是,如果URL不是由我编写的RestController表示的,那么我希望它位于我现有的禁用页面上。/**")} protected void configure(
HttpSecurity
http
) throws Exception {
浏览 0
提问于2018-12-10
得票数 0
3
回答
Spring boot安全性
、
、
return super.authenticationManagerBean(); protected void configure(
HttpSecurity
http
) throws Exception {
http
.authorizeRequests().
antMatchers
("/realtime/updates").hasRole(
浏览 23
提问于2017-08-10
得票数 1
1
回答
在
Spring OAuth2中
配置
安全性:对于身份验证请求,拒绝访问
、
、
、
、
我尝试过这种安全
配置
:protected void configure(
HttpSecurity
http
) throws Exception { .
antMatchers
("/users/authorize").permitAll() .
antMatchers
("/users/res
浏览 3
提问于2020-06-26
得票数 2
回答已采纳
3
回答
如何使用忽略某些端点
、
、
我使用Spring安全性,oauth的方式如下:@EnableAuthorizationServerpublic class AuthServerOAuth2Config extends AuthorizationServerConfigurerAdapter { public void configure(ClientDetailsServiceConfigurer clients) throws Exception { .jdbc(jd
浏览 2
提问于2020-03-05
得票数 0
回答已采纳
1
回答
如何将匹配器添加到
HttpSecurity
spring安全中
、
、
喜欢它:protected void configure(
HttpSecurity
http
) throws Exception { .
antMatchers
("/login").permitAll()我有一个
错误
: 未能实例化javax.servl
浏览 1
提问于2019-10-16
得票数 4
1
回答
Spring安全手动认证不起作用
、
、
、
我正在使用spring boot更改现有的应用程序,这个应用程序不使用spring安全进行身份验证,身份验证是控制器中的一种方法,所以我想使用spring安全,我尝试
在
spring安全中使用手动身份验证
http
) throws Exception {
http
.csrf().disable();
http
.authenticationProvider(siscoAuthenticationProvider).authorize
浏览 21
提问于2019-02-25
得票数 0
回答已采纳
2
回答
Spring安全自定义页面
、
、
、
、
是否有一种方法可以
配置
Security (使用Java ),以便只保护自定义页面,甚至可以使用@PreAuthorized注释?其想法是,我希望保护自定义调用(如/admin和其他东西)(而不对安全
配置
中的每个调用进行硬编码),这些调用是在上述注释下在控制器中设置的,但其他部分根本不应该使用身份验证。
浏览 7
提问于2016-04-15
得票数 0
回答已采纳
2
回答
如何禁用特定Rest控制器的Spring身份验证控件
、
、
、
、
问题
是,我想从数据库中检索一些数据,用于我的主页,并显示这些信息,即使没有对用户进行身份验证,但我一直收到401未经授权的
http
响应。在这里,我
在
堆栈溢出中读到了其他一些
问题
,这些都是我
在
Spring服务器中尝试过的
配置
:1)protected void configure(
HttpSecurity
htt
浏览 1
提问于2020-06-15
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
基于REST的数据处理流程
Spring Security 基于表达式的权限控制:内置表达式、3种应用示例
hosts文件配置错误怎么办?快速解决无法上网问题的5种方法
Springboot2.0 Theamleaf Security整合快速入门
MetaMask回应屏蔽IP事件:因Infura配置错误导致部分用户无法访问,问题已更正
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券