457775123 发表于 2018-3-21 13:52:38

3.7.3版本生成示例代码报错

3.7.3版本中 示例功能:招聘管理
我通过生成表单 找到了 这个招聘管理的 主表 附表。
通过主表生成代码,代码生成后,重启项目 出现如下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jformResumeInfoController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.wz.zx.platform.jformresumeinfo.service.JformResumeInfoServiceI com.wz.zx.platform.jformresumeinfo.controller.JformResumeInfoController.jformResumeInfoService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

具体错误见图

麻烦管理帮忙看下,谢谢。

admin 发表于 2018-3-21 19:37:03

看下常见问题贴 代码生成器用法,扫描路径是否配置

457775123 发表于 2018-3-21 21:10:50

admin 发表于 2018-3-21 19:37 static/image/common/back.gif
看下常见问题贴 代码生成器用法,扫描路径是否配置

谢谢~ 确实是 spring-mvc-hibernate.xml 没注入包

457775123 发表于 2018-3-21 21:26:26

本帖最后由 457775123 于 2018-3-21 21:28 编辑

admin 发表于 2018-3-21 19:37 static/image/common/back.gif
看下常见问题贴 代码生成器用法,扫描路径是否配置
还要麻烦您一下,我配置好后404通过断点。发现 在这一句开始 报错~ 后台什么东西都没输出,前台404
看了tomcat里 是有前端页面的
return new ModelAndView("com/wz/zx/platform/jformResumeinfo/jformResumeInfoList");

admin 发表于 2018-3-21 21:49:31

看看页面在不在

457775123 发表于 2018-3-21 21:57:04

admin 发表于 2018-3-21 21:49 static/image/common/back.gif
看看页面在不在

在的啊
页: [1]
查看完整版本: 3.7.3版本生成示例代码报错