腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
:我们可以在现有的
spring
应用程序中使用反应性Webfilter吗?
java
、
spring
、
spring-boot
、
spring-webflux
我正在尝试将
spring
反应性webfilter集成到现有的
spring
引导web应用程序中,并获得低于错误的结果。应用程序启动失败 无法注册
类
路径
资源
org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class已经在
类
路径
资源
org/
浏览 0
提问于2020-11-06
得票数 0
回答已采纳
2
回答
Spring
类
路径
资源
被
覆盖
java
、
spring
、
maven
我有一个使用以下代码的
类
: @Value(value = "classpath:mail_template.html") private Resource template; 根据this教程,这将允许我使用据我所知,这是正确的行为,因为module_1首先
被
加载,@Value
被
注入它找到的第一个mail_template.html,但在我的例子中这是不正确的,因为它
覆盖
了module_2 (以及后续模块)中在module_1中具有相同名称的
资源
。是否可以在@Value注释中指定使用当
浏览 13
提问于2019-06-06
得票数 1
2
回答
在SpringBoot中使用netflix面对微服务的问题
microservices
、
netflix-zuul
应用程序启动失败 无法注册
类
路径
资源
org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulCounterFactoryConfiguration.class已经在
类
路径
资源
org/springframework/cloud/netflix/zuul/ZuulServerAutoConfigur
浏览 0
提问于2018-08-21
得票数 10
回答已采纳
7
回答
在SpringBoot2.1中重写DataSource bean
java
、
spring
、
spring-boot
在
类
路径
资源
org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class,中定义的BeanDefinition已经在
类
路径
资源
org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class中定义
浏览 0
提问于2018-11-01
得票数 32
回答已采纳
1
回答
Spring
@PropertySource,如何读取文件(不是在
类
路径
上,而是在WEB下)
java
、
spring
、
spring-mvc
、
jakarta-ee
、
properties-file
Spring
4.2.2:Java将取代以下内容: class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
浏览 2
提问于2016-01-07
得票数 2
回答已采纳
1
回答
Jasper报告作为Java应用程序的一部分
java
、
jasper-reports
(new javax.swing.ImageIcon(getClass().getResource("/net/sf/jasperreports/view/images/save.GIF"))); public Image getIcon(String action) { try这显然是确定
资源
路径</
浏览 1
提问于2018-10-11
得票数 0
1
回答
对应用程序上下文和上下文位置的编程访问
java
、
spring
、
applicationcontext
、
spring-test
我有一些使用
spring
ContextConfiguration注释来提供应用程序上下文的测试(我没有编写它们,我正在维护它们): @ContextConfiguration(locations =我对不指定文件:/或
类
路径
:/的
spring
自定义上下文位置不太熟悉。什么意思?这个测试
类
路径
上有很多
资源
。他们都上膛了吗?如果不是,
Spring
如何知道加载哪一个?其次,是否有一种以编程方式访问以这种方式连接的
spring</
浏览 2
提问于2012-11-19
得票数 2
1
回答
不同
路径
匹配器的多个HttpSecurity
java
、
spring-boot
、
spring-security
在我目前的系统中,我们使用下面的功能来实现
spring
安全网关,如下所述。当我在同一个
类
中使用两个过滤器时,我会得到下面的错误..描述: 无法注册
类
路径
资源
org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class“已在
类
路径
资源
org/spr
浏览 0
提问于2021-05-27
得票数 0
3
回答
如何从Jython加载Jython框架ApplicationContext
java
、
spring
、
jython
我有一个
类
,它加载一个so框架应用程序上下文,如下所示: import org.springframework.context.ApplicationContext和文件mycontext.
spring
.xml分别部署到单独的jars中(以及各自模块中的其他
类
和
资源
)。让我们假设jar文件是OfflineScriptSupport.jar和*MyContext.jar“,mycontext.
spring
.xml放在jar的根部。:OfflineSc
浏览 2
提问于2010-05-12
得票数 2
1
回答
@ConditionalOnMissingBean不能被
覆盖
spring-boot
错误: 无法注册
类
路径
资源
com/example/autoconf/configuration/AppConfiguration.class,中定义的bean 'foo‘。已经在
类
路径
资源
com/my/configuration/MyAutoConfiguration.class中定义了具有该名称的bean,并且禁用了
覆盖
。如何使用@ConditionalOnMissingBean而不设置
浏览 2
提问于2019-07-26
得票数 6
回答已采纳
1
回答
Spring
:
资源
被
@RequestMapping
覆盖
?
java
、
spring
、
spring-mvc
RequestMapping(value = { "/{folder}/{subFolder}/{page}"}, method = RequestMethod.GET)<mvc:resources mapping="/_resources/**" location="/_resources/" /> 当我访问以下
资源
时,它由ResourceHttpRequestHa
浏览 2
提问于2017-11-10
得票数 0
回答已采纳
1
回答
Java
Spring
Boot -获取电子邮件在Freemarker中工作的图像
路径
java
、
spring
、
spring-boot
、
freemarker
我是Java
Spring
boot的新手。- 我已经访问了Freemarker演示--但是如何获得"\src\main\resources\static\images“的图像
路径
呢?
浏览 0
提问于2017-09-07
得票数 0
1
回答
将Html模板转换为Thymeleaf模板
html
、
css
、
spring-mvc
、
thymeleaf
、
template-engine
我正在尝试转换我的
spring
项目的html5模板。在这个项目中,我使用胸腺叶模板。
浏览 0
提问于2016-12-22
得票数 1
2
回答
Thymeleaf缓存设置为false不工作
spring
、
spring-boot
、
thymeleaf
该项目的结构如下: src/main/resources文件夹在我的IntelliJ IDEA项目中标记为
资源
。
浏览 9
提问于2016-12-29
得票数 3
回答已采纳
1
回答
Spring
引导可执行jar和外部配置文件
java
、
spring
、
spring-boot
的
资源
加载),所以它必须在
类
路径
上。因此,我似乎失去了像java -jar my-
spring
-boot-app.jar一样执行它的可能性,因为-jar选项阻止添加任何额外的
类
路径
条目。但随后
Spring
的自动装配开始失败:配置目录中的附加application.properties文件
覆盖
了一些设置,使用上面的命令导致应用程序启动失败: 创建名为“ORBConfig”的bean错误我的实际问题是:部署和/或运行
Spring</em
浏览 3
提问于2015-12-29
得票数 3
5
回答
spring
:向应用程序配置中添加新的yml文件
java
、
spring
、
spring-boot
我希望开发人员能够在本地
覆盖
一些配置属性。(假设我们在谷歌驱动器上工作,每个人都应该在自己的帐户上进行测试)。我不想使用命令行
覆盖
属性(因为它必须设置在每个IDE配置中和每个CLI运行中)。我想要的是:应用程序应该使用所有标准的
spring
引导配置文件(application.yml等),并查找例如local.yml (在
类
路径
上)或user.home中的某个文件。这些附加文件应该
覆盖
其他设置。编辑:我知道
spring</e
浏览 5
提问于2016-03-29
得票数 10
1
回答
spring
.profiles.active和
Spring
.config.activate.onProfile之间有什么区别?
spring-boot
、
spring-profiles
、
spring-properties
spring
.profiles.active和
Spring
.config.activate.onprofile之间的确切区别是什么?“警告”,“msg”:“从位置导入的'
spring
.profiles‘属性’
类
路径
资源
application.yaml‘是无效的,应该用’
Spring
.config.activate.onprofile‘替换为’should .config.activate.onprofile‘[原产地:
类
路径
浏览 23
提问于2022-07-21
得票数 1
3
回答
使用
spring
-boot-admin-server创建名为“转换server”的bean时出错
kotlin
、
spring-security
、
spring-boot-admin
我试图为我的应用程序启用
Spring
引导管理服务器。默认设置工作正常,但当我试图启用安全性时,我会得到以下错误: 无法注册
类
路径
资源
org/springframework/security/config/annotation已经在
类
路径
资源
org/springframework/security/config/annotation/web
浏览 9
提问于2019-11-19
得票数 11
回答已采纳
2
回答
如何在春季引导中启用浏览器缓存
java
、
spring
、
spring-mvc
、
caching
、
spring-boot
我正在尝试让
spring
启动,让浏览器缓存静态
资源
。我的
资源
位于“静态”下的
类
路径
中。当我查看发回的标头时,我看到修改的头
被
设置得很好,但是也添加了标题"Cache-Control: no-store“。Content-Type: text/cssDate: Wed, 24 Aug 2016 09:42:42 GMT 我已经看到了这个答案,但是这似乎不适用于我,因为我没有使用
spring
安全,它不在<e
浏览 3
提问于2016-08-24
得票数 6
回答已采纳
1
回答
为什么Thymeleaf国际公司只与ResourceBundleMessageSource合作
java
、
spring
、
thymeleaf
因此,在帮助回答这个问题时,@Bean(name = "messageSource") message
浏览 4
提问于2016-04-23
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Spring 中经典的 9 种设计模式,打死也要记住啊!
Spring 中经典的 9 种设计模式
Spring Boot 2.0 系列(四):开发者工具
Spring Boot 常见错误及解决方法
Spring创建bean的几种方式
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券