腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
0
回答
Spring
@
Autowired
提供
null
、
、
@Controllerpublic class EventController { EventValidatoreventValidator; private EventService eventService; private void initBinder(WebDataBinder binder) { System.out.println(eventValidator.toSt
浏览 1
提问于2016-12-29
得票数 0
回答已采纳
2
回答
Spring
数据( JPA Repository @
autowired
)
提供
null
、
、
、
我一直在尝试
spring
-data-jpa。在和以前的
spring
知识的帮助下,我已经设置了
spring
配置,但是i @
Autowired
的Repository总是返回
null
。hbm2ddl schema exportHibernate: create table Item (id bigint not
null
20) As it can be seen in output, there is NullPo
浏览 0
提问于2013-04-29
得票数 3
回答已采纳
1
回答
Spring
@
Autowired
注释为dozer映射
提供
null
、
、
这是我的类,我正在尝试使用这个注解,但dozerBeanMapper的值为
null
。对于我尝试使用的其他bean,我也会得到
null
,比如Jaxb2Mapper等@Scope("prototype")private Mapper dozerBeanMapper; public Object testMethod(Object wlpData) throws Transfor
浏览 0
提问于2014-01-22
得票数 0
2
回答
Spring
@
Autowired
在@Repository bean中
提供
null
、
我有一个简单的独立应用程序,它使用@
Autowired
注入一个SessionFactory,下面是代码:import org.springframework.beans.factory.annotation.
Autowired
; import org.springframework.context.support.GenericXmlApplicationContextorg.springframework.stereo
浏览 3
提问于2014-04-10
得票数 0
回答已采纳
1
回答
Spring
@
Autowired
为
null
、
@Component private EngineContext@
Autowired
mvc-dispatcher-servlet.xml <beans xmlnsschemaLocation="http://www.springframework.org/schema
浏览 2
提问于2015-01-18
得票数 1
回答已采纳
3
回答
Spring
@
Autowired
实例为
null
、
、
、
-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/
浏览 1
提问于2016-04-26
得票数 0
1
回答
Spring
@
Autowired
对象为
null
、
、
MyServiceImplementation.class]) @
Autowired
浏览 2
提问于2017-09-18
得票数 3
回答已采纳
3
回答
Spring
@
Autowired
字段返回
null
、
PropUtil propUtil; CommonUtil commonUtil; ICorelationDataDAOcorelationDataDAO; IReferenceDataDAO referenceDataDAO;<
spring
.versionstatic List<String> pCorelColLst = new ArrayList<S
浏览 0
提问于2014-01-03
得票数 0
回答已采纳
1
回答
Spring
@
Autowired
属性为
null
、
、
、
、
Spring
注释@
Autowired
不起作用。而在相同的设置中,我让@Inject使用Weld 1.1.0和Tomcat 6。 //1.@Component @Qualifier("work") privateschemaLocation="http://www.springframework.org
浏览 2
提问于2014-12-13
得票数 0
1
回答
Spring
项目没有自动在另一个
spring
项目中自动运行服务
、
、
我有两个
Spring
和
spring
项目。我想得到
spring
项目的服务。
Spring
引导项目作为客户端工作。我在
spring
项目中添加了
spring
项目名称,作为对pom.xml的依赖。@
Autowired
PriceFactorService priceFactorService; --
浏览 0
提问于2018-05-24
得票数 0
回答已采纳
1
回答
Spring
@
Autowired
bean为
null
、
、
我看了一下public class AccountConverterImpl implements Converter<AccountOutput, Account> { return map
浏览 2
提问于2014-08-11
得票数 0
2
回答
JAVA -我可以直接删除@Autowire吗?
、
dependencies of some of the beans in the application context from a cycle: xxx在我改变之前:MyUtil myUtil; //@Component MyConfig myConfig; //@Component @
Auto
浏览 4
提问于2022-10-02
得票数 1
回答已采纳
1
回答
NullPointerException在春季用SimpleMailMessage()发送邮件时
、
、
、
、
com.tenshin_arts.inventory.mail; import javax.va
浏览 0
提问于2017-11-29
得票数 2
回答已采纳
2
回答
Spring
Data JPA存储库抛出空指针
、
、
、
、
我一直在使用
Spring
Boot处理
Spring
数据。使用JavaConfig文档,我设置了一个
Spring
JPA配置,但是在我的存储库中调用save方法时,抛出了一个空指针。Date updated;@Service SpringApplicati
浏览 4
提问于2016-05-26
得票数 14
回答已采纳
4
回答
如何在构造函数中使用@
Autowired
bean?
、
、
、
这是我的课, @
Autowired
this.errorCode=errorCode; this.messageInEnglish=messageSource.getMessage(this.code,
null
浏览 6
提问于2018-01-29
得票数 2
回答已采纳
1
回答
在
spring
@Controller上创建一个方面,并在构造函数中使用“自动分配的最终字段”
、
、
、
问题是,我正在通过@
Autowired
注入依赖项。private final ClientService clientService;public
浏览 1
提问于2013-07-26
得票数 1
3
回答
Spring
Boot JPA @
AutoWired
bean
null
、
、
我正在学习
Spring
,我遇到了这个问题,
AutoWired
bean给出了空指针例外,我尝试更改注释,并检查了所有常见的可疑点。STSController.javaimport org.springframework.beans.factory.annotation.
Autowired
org.springframework.web.bind.annotation.RestController; @RestC
浏览 7
提问于2021-10-28
得票数 0
回答已采纳
1
回答
为什么message属性在
Spring
中返回空
、
、
、
private static final String PAYEE_ACCOUNT_ALREADY_EXIST = "axipay.failure.account.already.exist"; @
Autowired
浏览 1
提问于2019-11-08
得票数 0
回答已采纳
2
回答
Spring
@
Autowired
存储库返回
Null
、
、
、
、
我目前正在开发一个基于
Spring
引导的应用程序,该应用程序还集成了ActiveMQ功能,以处理两个不同应用程序之间的DB更新。我目前正在尝试集成
spring
(与hibernate)
提供
的默认功能,以处理与DB相关的操作。当试图使用JpaRepository将接收日期保存到数据库时,它被表示为
Null
。java.util.List; import org.springframework.beans.factory.annotation.
浏览 2
提问于2016-12-08
得票数 2
2
回答
Spring
io @
Autowired
:空的最终字段可能尚未初始化
、
、
、
我假设这是一个非常基本的问题-我在春天写了一个REST-ful webapp的初级阶段。我有一个名为Workspace的实体,并且正在尝试使用bean的
spring
注入(正确的术语?)保存工作区实体的实例importcom.parrit.models.WorkspaceRepository;
浏览 0
提问于2016-01-04
得票数 29
回答已采纳
点击加载更多
相关
资讯
Spring Boot实战:整合MyBatis连接数据库
springboot学习-整合mybatis实现数据的持久化
SpringBoot项目启动成功后,bean实例化成功,但是用的时候注入失败,我们应该怎么解决?
啥是SpringSecurity基于数据库认证
如何进行高效的源码阅读:以Spring Cache扩展为例带你搞清楚
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券