You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring中ConfigServletWebServerApplicationContext初始化时出现ERROR 11044的问题求助

Spring中ConfigServletWebServerApplicationContext初始化时出现ERROR 11044的问题求助

大家好,我现在碰到一个超烦人的Spring错误(错误码11044),翻遍了资料都找不到相关信息,实在没办法了来求助!

下面是错误日志的具体内容:

ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controller': Unsatisfied dependency expressed through field 'service': Error creating bean with name 'service': Unsatisfied dependency expressed through field 'repository': Error creating bean with name 'repository' defined in br.com.example.spring_boot_and_kotlin.repository.Repository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Not a managed type: class br.com.example.spring_boot_and_kotlin.model.Person

我已经对着这个问题头都磕破了,查了有没有遗漏注解,也试了几种Bean扫描的注解,但完全没效果。而且这个问题是我尝试给Person类做DTO映射之后才突然出现的...

有没有大佬能给我点拨一下?提前谢过各位了!

备注:内容来源于stack exchange,提问作者r0ck-b0tt0m

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 09:54:36