腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
文章
问答
(73)
视频
沙龙
1
回答
基于Spring注解和限定符的扫描
java
、
spring
、
annotations
在执行基于注释的组件扫描时,是否有一种在春季应用限定符的方法?@MyAnnotation} public class ClassTwo {@ComponentScan(basePackages = { "common" }, useDefaultFilters = false, includeFilters = { @ComponentScan.Filter(type = FilterType.ANNO
浏览 3
提问于2014-11-13
得票数 0
回答已采纳
1
回答
如何动态创建多个相同类型的bean,然后收集/自动连接它们
java
、
spring
、
spring-boot
假设在我的spring(boot) yaml配置文件中有一个命令列表:和我的spring(boot)项目中的相应类: this.name = name; System.out.println(name); public String ge
浏览 0
提问于2020-06-01
得票数 0
1
回答
STS 4.9.0中OSGI资源的类路径问题
java
、
spring-boot
、
osgi
、
sts
但是,如果我想使用引导仪表板在STS中运行这个应用程序,我会得到以下错误: The method's class, org.springframewor
浏览 3
提问于2021-01-05
得票数 1
回答已采纳
1
回答
禁用特定Spring Boot测试的Kafka侦听器
java
、
spring
、
spring-boot
、
apache-kafka
、
spring-kafka
如何在Spring Boot (2.2+)和Spring Kafka (2.4+)应用程序的@SpringBootTest测试中禁用@KafkaListener实例? 目标是在特定测试中禁用Kafka侦听器,以便在不启动嵌入式Kafka代理的情况下运行此类测试。
浏览 39
提问于2020-01-25
得票数 3
回答已采纳
1
回答
为什么
AnnotationMetadata
是基于ASM而不是Java反射
java
、
spring
、
java-bytecode-asm
实现
AnnotationMetadata
是基于ASM而不是Java反射?是否有可能加快从Annotation解析元数据的速度?
浏览 0
提问于2018-05-13
得票数 1
2
回答
验证请求正文不等于模式
java
、
spring
、
micronaut
在验证请求参数时,我正在进行NonNull检查,但现在我想阻止某些类型的模式。 @Prototype @NotBlank(message="Error: id cannot be null") private String id; } 现在,我必须阻塞id与以下任意模式匹配的请求 (\*\s+(\w+)\s+\*) ((\w+)\:(\d+)\/(\d+)) 我知道我可以包含一个@Pattern(regexp =来允许特定的模式,但不确定如何阻止特定的模式
浏览 16
提问于2020-09-01
得票数 1
2
回答
如何在spring中创建已被代理的类的动态代理
java
、
proxy
、
spring-cloud
、
feign
、
resilience4j
:public class WithCircuitBreakerConfiguration implements ImportAware { private AnnotationAttributes annotationAttributes; publicvoid setImportMetadata(
AnnotationMetadata
importMetadat
浏览 0
提问于2019-09-11
得票数 1
2
回答
@ContextConfiguration中配置类的初始化顺序会受到影响吗?
java
、
spring
我正在使用@ContextConfiguration注释来管理我的应用程序中的配置。创建配置时,它们只提供由给定模块公开的bean。因此,某些由给定模块使用的bean不一定直接导入。示例: \-(use)--------------------------------> database 换句话说,configuration使用module1,它要求(但不能直接导入)数据库配置。因此,configuration也使用dat
浏览 10
提问于2013-10-15
得票数 6
回答已采纳
1
回答
Spring boot自定义启动器和Spring Data JPA -如何在我自己的自定义自动配置/启动器模块上正确提供存储库
spring
、
spring-boot
、
spring-data-jpa
、
spring-boot-starter
我正在尝试为我的一个项目编写一个自动配置/启动模块。此模块通过Spring Data JPA处理持久性。它的目标是提供几个spring数据存储库。 现在,我的自动配置如下所示: @Configuration(proxyBeanMethods = false)@EnableJpaRepositories(basePackageClasses = [ItemRepository::class]) @EntityScan(basePackageClasses = [ItemR
浏览 36
提问于2020-04-15
得票数 2
1
回答
为接口创建Bean
java
、
spring
、
spring-boot
我正在尝试创建像@Repository这样的系统。 我有很多接口,比如: @Client(uri = "http://example.com", username = "httpBasicUsername", password = "httpBasicPassword") Mono<Response> ex1(Object body
浏览 19
提问于2021-01-06
得票数 0
1
回答
卡夫卡挡住了
apache-kafka
、
micronaut
、
micronaut-kafka
io.micronaut.configuration.kafka.intercept.KafkaClientIntroductionAdvice.lambda$getProducer$13(String,
AnnotationMetadata
io.micronaut.configuration.kafka.intercept.KafkaClientIntroductionAdvice.getProducer(Argument, Argument,
AnnotationMetadata
浏览 6
提问于2020-12-11
得票数 0
回答已采纳
1
回答
将spring data commons用于Page.map方法时出现异常
java
、
spring-boot
、
spring-data-commons
<init> (Lorg/springframework/core/type/
AnnotationMetadata
;Ljava/lang/Class;Lorg/springframework/core/
浏览 4
提问于2018-02-13
得票数 0
回答已采纳
2
回答
在spring boot中从1.5.4移动到1.5.6时找不到类
spring-boot
<init>(Lorg/springframework/core/type/
AnnotationMetadata
;Ljava/lang/Class;Lorg/springframework/core/io
浏览 3
提问于2017-08-24
得票数 1
1
回答
获取给定Spring的类注释
spring
、
spring-bean
我有两个自定义注释,如下所述。下面是使用2个自定义注释的代码片段。public class MainClass{ public ObjectBuilder getObject1() {
浏览 3
提问于2020-01-31
得票数 0
4
回答
如何使用实现ImportBeanDefinitionRegistrar在类中注入属性?
spring
、
spring-boot
、
spring-boot-starter
this.properties = properties; public void registerBeanDefinitions(
AnnotationMetadata
浏览 0
提问于2018-09-07
得票数 1
1
回答
从ImportBeanDefinitionRegistrar中的外部包配置类检索bean
spring
、
spring-boot
MyRegistrar implements ImportBeanDefinitionRegistrar { public void registerBeanDefinitions(
AnnotationMetadata
浏览 15
提问于2019-01-25
得票数 0
回答已采纳
1
回答
无法使Spring的ImportAware工作
spring
、
configuration
AnnotationAttributes enableCustomizedPropertySourcesAttributes; public void setImportMetadata(
AnnotationMetadata
浏览 0
提问于2016-08-11
得票数 2
1
回答
Spring拒绝启动,AbstractRepositoryConfigurationSourceSupport的问题
java
、
spring-boot
、
spring-data-jpa
<init>(Lorg/springframework/core/type/
AnnotationMetadata
;Ljava/lang/Class;Lorg/springframework/core/ioAnnotationRepositoryConfigurationSource.java:126) org.springframework.core.type.
AnnotationMe
浏览 19
提问于2020-10-02
得票数 0
回答已采纳
2
回答
如何在库中将参数从自定义注释传递到WebSecurityConfigurer
spring-boot
、
spring-security
、
spring-annotations
、
websecurity
嗨,我们正在构建自定义的spring安全库。@EnableMySpringSecurity(excludePaths = {"/v1","/v2"})public class WebAppConfiguration extends BaseWebAppConfiguration {@EnableWebSecurity(debug = tr
浏览 5
提问于2021-05-19
得票数 1
回答已采纳
1
回答
NoSuchMethodError SpringBoot启动失败
spring-boot
、
jakarta-ee
、
tomcat7
<init>(Lorg/springframework/core/type/
AnnotationMetadata
;Ljava/lang/Class;Lorg/springframework/core/io
浏览 75
提问于2019-04-24
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Spring注解——使用@Import给容器中快速导入实例
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券