腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
尝试用WebMvc测试
禁用
密钥披风和
Spring
安全性
、
、
、
我有一个
使用
spring
安全和密钥披风
的
spring
引导应用程序。在执行应用程序时,
使用
jwt令牌进行保护就像预期
的
那样工作。然后,我有一个独立
的
测试application.yml,在那里我试图
禁用
密钥披风,就像在网络教程中发现
的
那样。 对于webmvc测试,这不像预期
的
那样工作。虽然我试图
禁用
与安全和密钥披风相关
的
所有内容,但KeycloakWebSecurityConfigur
浏览 28
提问于2022-10-18
得票数 0
回答已采纳
2
回答
如何在
Spring
Boot
2.2.0中
禁用
集成测试中
的
安全性
?
、
、
、
我需要在集成测试中
禁用
spring
-security。我
使用
的
是
Spring
boot
2.2.0,在这个版本中,我没有找到一些方法。
浏览 30
提问于2019-12-12
得票数 2
回答已采纳
1
回答
如何在
Spring
启动时
禁用
默认
的
Spring
安全?
、
我
使用
Spring
boot
2和
Spring
安全性
,但不能
禁用
默认
安全性
。这是我
的
配置类:@EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter
浏览 6
提问于2019-03-10
得票数 1
1
回答
Spring
禁用
默认登录页面
、
、
我想
使用
keycloak作为授权服务器,我
的
应用程序作为
spring
网关和oauth2客户端。当进入端点时,我会被重定向到密钥披风登录页面,女巫很好。但是,每当我输入端点"localhost:9090/ login“时,我就进入默认
的
oauth2登录页面:httpSecurity
浏览 3
提问于2022-09-15
得票数 1
2
回答
如何在控制器
单元测试
中
禁用
安全性
?
、
、
、
我尝试
禁用
控制器
单元测试
的
安全性
,但总是出现错误403。我
的
单元测试
:@WebMvcTest(value = MeasureController.class, secure = false) tokenService.setClientSecret("....."
浏览 2
提问于2018-08-13
得票数 1
1
回答
排除SecurityAutoConfiguration不会
禁用
spring
安全基本身份验证
、
我只是尝试
禁用
spring
安全性
,然后根据我
的
属性文件中
的
条件添加它,但是基本
的
spring
安全性
并没有被
禁用
。我正在
使用
spring
security 2.2.4.RELEASE和
spring
boot
starter 2.2.4.RELEASE,下面是我
的
代码。
浏览 129
提问于2020-04-17
得票数 0
回答已采纳
1
回答
Spring
Boot
:
禁用
Spring
Boot
单元测试
的
安全性
、
、
、
、
Spring
Boot
版本: 2.0.4.RELEASE "401" status, "error": "unauthorized" 为测试
禁用
Spring
Security
的
最好方法是什么?,测试仍然返回"401“未经授权
的
错误代码。HttpURLConnection.HTTP_BAD_R
浏览 10
提问于2018-10-26
得票数 6
回答已采纳
3
回答
Spring
boot
和
Spring
Actuator -
禁用
安全性
、
、
、
我在我
的
应用程序中
使用
了
spring
-
boot
1.3.1和
spring
-
boot
-actuator。在pom.xml中,我
使用
spring
-
boot
-starter-parent作为父对象。为了
禁用
安全性
,我在application.yml中添加了2个条目。security: enabled: false security: enabl
浏览 2
提问于2016-01-27
得票数 3
1
回答
Spring
Boot
-强制所有流量通过网关服务
、
在我们
的
域中,我们有许多
Spring
Boot
应用程序和一个网关服务(我们正在
使用
Netflix Zuul)。我们
的
网关服务负责我们
的
身份验证和
安全性
。我们希望所有的消费者都能通过我们
的
网关服务进入。 因为
安全性
是由Gateway Service处理
的
,所以我们想
禁用
对
Spring
Boot
应用程序
的
直接访问。任何不是源自我们
的
浏览 0
提问于2017-07-12
得票数 1
2
回答
Spring
Boot
2.2.4 -
禁用
安全性
、
、
、
我在stackoverflow上发现了大量关于如何在
spring
boot
中
禁用
安全性
的
博客文章和问题--但似乎都不适用于
spring
boot
2.2.4。我之所以这样问,是因为我想通过配置
禁用
我
的
开发和测试配置文件
的
安全性
,这样我们就可以在不生成jwt令牌
的
情况下进行部署。从我
的
角度来看,最有希望
的
方法是通过属性文件排除SecurityAut
浏览 11
提问于2020-02-27
得票数 2
回答已采纳
2
回答
如何在
Spring
Boot
中
禁用
某些API
的
安全性
、
我正在用
Spring
Boot
编写一个应用程序。我
使用
的
是
Spring
启动
的
默认安全机制。但我想
禁用
某些端点
的
安全性
,如monitoring、healthcheck等。
浏览 2
提问于2016-07-21
得票数 1
2
回答
启用具有JWT
安全性
的
Spring
Boot
2.0执行器端点
、
、
、
、
首先,我是
Spring
Boot
Framework
的
新手。我已经在执行器上工作了几天了,并且能够设置端点来监控系统。然而,当我为
安全性
集成JWT时,我所有的执行器端点都坏了。如何
禁用
spring
boot
安全性
之上
的
执行器端点
的
JWT
安全性
?以下是我
的
application.yml文件属性。
浏览 0
提问于2018-04-02
得票数 1
11
回答
使用
spring
boot
禁用
单元测试
的
安全性
、
我正在尝试创建一个简单
的
spring
boot
web项目。我可以很好地启动应用程序,
安全性
也运行得很好。我只是在对我
的
一个组件进行
单元测试
。我
的
(相关) gradle依赖项是: compile("org.springframework.
boot
:
spring
-
boot
-starter-actuator") compile("org.springframework.
boot</e
浏览 234
提问于2015-07-02
得票数 61
回答已采纳
22
回答
弹簧启动
安全性
禁用
安全性
、
当我
使用
security.basic.enabled=false
禁用
具有以下依赖项
的
Spring
项目的
安全性
时: <groupId>org.springframework.
boot
</groupId> &
浏览 26
提问于2014-05-27
得票数 120
1
回答
如何在
Spring
Webflux中
禁用
单元测试
的
安全功能
、
、
已经是我
的
Unit tests are passed了。在我用JWT token添加了
安全性
之后,通过
的
单元测试
是failed安全特性
的
原因。我想
使用
disable security features进行
单元测试
。我不想rewrite所有的测试用例。 我可以
使用
disable the security features进行
单元测试
吗?我
使用
了
Spring
Boot
2.1.1、We
浏览 5
提问于2019-01-09
得票数 2
1
回答
禁用
应用程序中
的
所有模块
、
、
、
import org.springframework.
boot
.*;import org.springframework.web.bind.annotationmain(String[] args) throws Exception { } 我只
使用
这个依赖项: 我不需要任何过滤器,任何
安全性
,我希望在<em
浏览 2
提问于2017-02-12
得票数 1
1
回答
在
Spring
boot
1.5.14中
禁用
Spring
安全
、
我
的
安全配置public class SecurityConfiguration extends WebSecurityConfigurerAdapter
安全性
被完全
禁用
@EnableGlobalMethodSecurity(prePostEnabled = true)如果我设置了prePostEnabled = false
浏览 1
提问于2018-09-22
得票数 0
1
回答
如何覆盖默认
的
Spring
Boot
登录页面?
我是
Spring
Boot
2
的
新手,我正在尝试运行这个简单
的
应用程序。不幸
的
是,每次我运行我
的
服务时,我都会得到来自
Spring
Boot
的
这个登录表单。我有什么方法可以覆盖它吗?;import org.springframework.
boot
.autoconfigure.SpringBootAp
浏览 161
提问于2019-04-08
得票数 0
回答已采纳
1
回答
禁用
spring
安全性
不起作用
、
、
、
我
使用
了
spring
2.1.6 security,并在pom.xml中添加了
spring
安全性
。我
的
pom.xml是: <artifactId>
spring
-
boot
-star
浏览 0
提问于2019-08-06
得票数 0
回答已采纳
1
回答
如何在
Spring
Boot
中将自定义AbstractHealthIndicator设置为不敏感,以便为/health端点显示?
、
、
我正在运行
Spring
Boot
v1.5.2.RELEASE。 "status": "UNKNOWN", }下面是我为TestingHealthIndicator.java编写
的</e
浏览 0
提问于2017-07-25
得票数 3
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
使用idea快速的搭建spring boot项目
使用Gradle构建基于Kotlin的Spring Boot项目
《06.Spring Boot的数据访问:PagingAndSortingRepository使用》
使用 Spring Boot 2.1 介绍 Servlet 4.0 的服务器推送
为什么越来越多的开发者选择使用Spring Boot
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券