腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
JMX -导出键值对
的
映射
、
、
理想情况下,是否可以使用
spring
JMX注释导出键值对映射,其中键用作导出
的
属性名称?谢谢。
浏览 0
提问于2010-08-12
得票数 2
回答已采纳
4
回答
BeanNameAware和BeanFactoryAware
、
BeanNameAware和BeanFactoryAware
的
用途是什么?我当时正在学习
spring
,偶然发现了这两个
接口
。我
在
谷歌上搜索了它们,但没有发现有用
的
东西。请告诉我BeanNameAware和BeanFactoryAware
接口
的
功能是什么,以及什么时候使用这些
接口
?
浏览 5
提问于2013-10-11
得票数 20
回答已采纳
3
回答
Spring
数据-从存储库
获取
实体名称/类型
、
、
我正在寻找一种从
实现
Spring
Repository
接口
的
实例
中
获取
实体类型或类名
的
方法。
Sprin
浏览 5
提问于2017-12-11
得票数 4
回答已采纳
2
回答
Spring
对象创建和@自动装配注解
、
、
我是新来
的
春天@Autowired但是我可以看到EmployeeManager是一个
接口
public void deleteEmployee(Integer employeeId);但在java
中
,我们不能为
接口
right.So创建对象,
浏览 3
提问于2017-04-21
得票数 0
3
回答
如何实例化
通用
spring
bean
?
、
、
、
、
为此,我使用了
Spring
3 (MVC)和Hibernate 4。; this.entity = entity;我像这样实例化
bean
place = new AutoComplete<Place>(Place.class);如果我运行代码,我会得到“找不到默认构造函数”
的
异常如果我添加一个默认<em
浏览 0
提问于2012-12-17
得票数 0
1
回答
java
spring
中
的
注释@Repository是如何工作
的
?
、
我有这样
的
密码:@Repository public interface EquipmentRepository extends JpaRepository<Equipment, IntegerEquipmentRepository是一个
接口
,对吗?
浏览 1
提问于2019-05-08
得票数 1
回答已采纳
2
回答
通过@Configuration、@
Bean
和@Component进行
Spring
依赖注入
、
、
、
、
我一直
在
努力理解依赖注入是如何通过@Configuration、@
Bean
和@Component注解工作
的
。import com.example.service.ports.Validation
浏览 1
提问于2019-07-04
得票数 2
2
回答
Spring
getBean方法返回
的
那些
bean
来自何处?
、
、
、
你能列出
所有
可能
的
getBean来源吗? 顺便说一句,如果我只编写context.getBean(SomeInterface.class),我能得到
接口
类
的
实现
吗?
浏览 3
提问于2014-12-08
得票数 1
回答已采纳
2
回答
Spring
实现
多个
接口
、
、
、
我有一个
实现
两个
接口
的
bean
。} ... ...
在
我
的
AppConfig
中
,我指定了以下内容:public InterfaceA interfaceA() { return new Clas
浏览 1
提问于2015-07-20
得票数 6
回答已采纳
1
回答
Spring
引导
bean
空异常
、
、
postProcessBeanDefinitionRegistry(final BeanDefinitionRegistry registry){ }我
的
服务课public class DataConfigurationService implements ApplicationListener47.803 ERROR 8880 --- [ main]
浏览 4
提问于2017-01-07
得票数 0
回答已采纳
2
回答
Spring
自定义验证
我正在为我
的
应用程序学习
Spring
,目前我正在使用
Spring
Validator
接口
来进行验证。我想知道我是否可以用我
的
所有
验证规则来编写类似于自定义xml
的
东西,然后我可以使用
Spring
来读取和验证这些规则。一些类似的东西 <id="name" name="rule1" mandatory="yes&q
浏览 2
提问于2013-03-14
得票数 0
回答已采纳
2
回答
获取
在
Spring
中
实现
泛型
接口
的
所有
bean
、
如何在
Spring
中
获得
实现
特定泛型
接口
(例如Filter<TestEvent>)
的
所有
bean
的
引用?这就是我想用最少
的
行数来
实现
的
: public// abort if a filter does
浏览 1
提问于2010-07-12
得票数 6
回答已采纳
3
回答
Spring
和Java
接口
、
在
阅读一些关于开发企业应用程序
的
高级书籍时,我经常看到以下模式,可以通过以下示例加以说明: String defineMeaningOfTheLifeXmlBeanDefinitionReader(factory); "META-INF/
spring
/xml-
bean
-factory-confi
浏览 4
提问于2015-07-06
得票数 0
回答已采纳
2
回答
当
bean
有多个
接口
时,
spring
标识/自动更新是如何
实现
的
?
、
、
、
(); } fooBarTwo getFooBarTwo() { return new FooBarTwo();} 最后,另一个
bean
,它在foo
的
所有
实现
列表
中
包含@Autowries> fooFetcher(List<<InterfaceFoo>> listFoos) { }我
的
问题是,当
Spring
有多个
接口
<e
浏览 8
提问于2022-10-27
得票数 0
回答已采纳
2
回答
具有构造函数
的
类
中
的
Spring
不自动装配字段
、
、
、
我在这里看到了堆叠溢出
的
问题,例如: public class UmbrellaRestClient implements UmbrellaClient { private static final Logger LOGGER我在其他具有依赖注入和工作
的
类中进行了测试。我猜这是因为我有一个依赖于一个参数
的
构造函数,并且这个参数实际上是由每个需要使用它
的
类传递
浏览 2
提问于2016-01-25
得票数 0
1
回答
从
spring
中
检索代理实例
、
、
我感兴趣
的
是从
spring
获得代理
的
类,而不是代理。
浏览 0
提问于2009-09-11
得票数 0
回答已采纳
1
回答
Spring
数据自动生成存储库
接口
、
我是
Spring
数据新手,我想知道用这种方式直接自动创建存储库是否正确(假设不需要更多
的
方法),因为
Spring
4可以解决
通用
自动装配问题:CrudRepository<User,Long> repo;public
浏览 1
提问于2015-11-30
得票数 2
回答已采纳
1
回答
Spring
依赖注入:注入
接口
的
所有
实例
、
、
如果可能的话,如何使用
实现
特定
接口
的
所有
其他
Spring
bean
的
集合来配置
Spring
bean
?示例:我想将CarFactory
bean
与
实现
CarManufacturer
接口
的
bean
列表连接起来。
浏览 5
提问于2011-10-11
得票数 13
回答已采纳
6
回答
BeanPostProcessor和
Spring
中
的
初始化/销毁方法有什么不同?
实现
BeanPostProcessor
接口
与
在
Spring
配置文件中使用init/destroy方法属性或
实现
InitializingBean/DisposableBean
接口
有什么不同?
浏览 2
提问于2012-03-26
得票数 58
回答已采纳
3
回答
为不同环境定义
Spring
时
的
常见策略
、
、
在
开发和生产环境中使用不同
的
一组
bean
的
通用
策略是什么?目前,我正在做
的
是有两个xml定义。native.xml <
bean</e
浏览 6
提问于2010-08-14
得票数 8
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券