腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
0
回答
如
何在
spring
bean
中
注入
List
<
Integer
>
来
代替
List
<
String
>?
、
、
、
、
application-context.xml
中
的
bean
定义 <
bean
id="testMap" class="java.util.HashMap"> <entry key="test
浏览 25
提问于2021-08-22
得票数 0
6
回答
如
何在
春季培育通用型<T>豆?
、
、
、
、
我有一个
bean
Item<T>,它需要在@Configuration类
中
自动处理。@Configuration public Item<
String
> stringItem() { } public Item<
Integer
> integerItem() {
浏览 4
提问于2014-03-24
得票数 98
回答已采纳
1
回答
弹簧启动配置。收集自动装配-在成功的自动装配后获得意想不到的价值
、
、
它包含
String
、Map<
Integer
,
List
<
String
>>和
List
<
String
>
bean
类型。@
Bean
return "
String
";public Map<
Integer
,
List
<
浏览 1
提问于2019-03-19
得票数 0
回答已采纳
2
回答
spring
boot构造函数中出现意外错误
、
、
@Configuration
List
<
String
> tableIds) { }在运行时,我得到了下面的错误。************************ Parameter 0 of
浏览 11
提问于2021-11-27
得票数 0
2
回答
如
何在
spring
框架
中
@Autowired a
List
<
Integer
>
、
、
、
我有一个配置类如下所示:public class ListConfiguration { public
List
<
Integer
>
list
() { ints.add(1); return ints;
浏览 5
提问于2016-09-23
得票数 5
回答已采纳
1
回答
如何定义受保护的
bean
或私有
bean
?
、
It really depends on config loading sequence protected
List
<
Integer
> innerList(){ ArrayList<
Integer
> result> inner
浏览 5
提问于2022-08-09
得票数 0
1
回答
在
Spring
中
,将两个方法的结果缓存在一个缓存
中
、
、
我有两个方法,第一个返回一个元素列表,第二个返回单个元素:User getUserFromExternalSystem(
Integer
userId); 我希望
Spring
缓存这两个方法的结果,这样当元素列表方法(getUsersFromExternalSystem())被调用时,它将缓存所提供的id (userIds在
Spring
浏览 13
提问于2019-11-08
得票数 3
6
回答
Spring
自动创建一个列表
、
、
就像我有一个带有mimetype的属性文件,在我的类文件
中
,我有类似这样的东西private
List
<
String
> mimeTypes = new ArrayList<
String
浏览 1
提问于2011-06-07
得票数 36
2
回答
使用
Spring
中
的属性创建对象列表
、
、
我正在使用
Spring
中
的属性,我对这些属性有疑问estudiante.nombre=Antonio, Juan , Maria, Raquel super(); this.edad = edad<
String
> nombres; @Value("#{&
浏览 0
提问于2016-04-03
得票数 5
1
回答
spring
新的arrayList
注入
如
何在
spring
中
注入
一个空的(新的) "double/
string
/object“数组列表?public class Pack{ private
List
<Course> courses; private int comp;xml文件 &
浏览 6
提问于2017-08-24
得票数 0
1
回答
Spring
- inject vavr集合
、
、
、
、
在我的
Spring
项目中,我广泛使用了库
中
的集合。有时我需要
注入
bean
集合。据我所知,
Spring
只能
注入
JDK
中
的集合,例如
List
、Set、Map等,有没有办法
注入
vavr集合呢?我想做这样的事情:class NameResolver { io.vavr.collection.
List
<NameMatcher> matchers
浏览 2
提问于2019-06-13
得票数 1
1
回答
带有外部依赖项的静态工厂依赖项
注入
、
我们如
何在
Spring
上下文中创建
bean
来
注入
依赖关系?我可以通过指定factory-method = "newInstance"
来
创建MainFactory,但对于创建的实例,
如
FirstCSVConcrete()或FirstXLSConcrete()。我还需要
注入
TotalReport
bean
。那么,我们如
何在
Spring
上下文中创建工厂时
注入
外部依赖项
浏览 1
提问于2013-05-27
得票数 2
4
回答
找不到符合依赖关系的
bean
[CountryRepository]:应至少有1个符合自动关联候选条件的
bean
、
、
、
在运行该项目时,我遇到了以下错误INFO: No
Spring
Enable debug logging for this logger for a complete
list
of JARs that were scanned but no TLDs were foundDec 09, 2019 9:42:26 AM org.apache.catalina.core.ApplicationContext log I
浏览 0
提问于2019-12-09
得票数 1
1
回答
Spring
如何通过XML向队列
注入
值
、
、
使用
Spring
,我想要创建一个Person类型的
bean
对象,而这个
bean
对象具有一个类型为Queue<
Integer
>的queue属性,如何通过Queue<
Integer
>向该属性
注入
值?我尝试使用<
bean
>元素,但是
bean
的属性queue是空的。对象如下 private int id; private Queue<
Integer</
浏览 1
提问于2020-01-01
得票数 0
回答已采纳
1
回答
如何通过@Value
注入
list
?
、
application.properties:我想将其作为
List
注入
到@Value字段
中
:
List
<
Integer
>
list
;@
Bean
return
浏览 1
提问于2016-06-02
得票数 0
3
回答
springboot
中
的多个requestparam可分页
、
、
、
我需要在
spring
boot rest控制器
中
制作多个RequestParam,如下所示: @GetMapping("/prd-products/test")public ResponseEntity<
List
<Test>> getAllTests(@RequestParam (required = false)
String
search, @RequestParam (required = false它会给出以下错误 "titl
浏览 71
提问于2019-08-21
得票数 2
回答已采纳
2
回答
如何添加到
Spring
/Hibernate架构
中
创建JPA2标准查询?
、
、
、
我的架构包括在SessionFactory -context.xml
中
创建应用程序
bean
: class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">然后我让Repository基类
注入
这个sessionFactory。<T> findByNamedQuery(<
浏览 1
提问于2017-03-11
得票数 0
1
回答
如
何在
Spring
5XML的WebContentInterceptor
中
设置cacheControlMappings
、
、
、
、
我想为
Spring
MVC
中
的几个URL添加缓存控制指令(同时设置public和max-age秒),并且我只想通过applicationContext.xml完成这些更改。我在
spring
-mvc-config.xml
中
的配置如下所示-我正在创建一个CacheControl
bean
,如下所示,并且我通过调试验证了此
bean
已成功创建,并在应用程序上下文中填充了适当的值。<value>/**/b/*</value>
浏览 19
提问于2020-08-24
得票数 0
回答已采纳
1
回答
使用属性
中
的值列表自动生成
bean
、
schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/
spring
-beans.xsd"> <
bean
id="filterBySlic" class="ca.ups.tundra.msg.FilterMessagesBySlic">
浏览 0
提问于2012-12-05
得票数 2
回答已采纳
1
回答
从SpringBoot应用程序调用Strava
我正在尝试开发我的第一个java
Spring
应用程序,它调用Strava API并在给定时间内获取我的活动。我已经在Strava的网站上注册了我的应用程序,并获得了client_id和客户端的秘密。我已经生成了
spring
-swagger-codegen-api客户端,并将客户端引入应用程序。,
Integer
after,
Integer
page,
Integer
perPage) { final
List
<SummaryActivity> logged
浏览 4
提问于2021-11-06
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券