
复制 问题
|
创建 子任务
|
|
如果你是 登录 你不能看到更多操作.
|
|
|
easyjweb
创建: 27/二月/08 02:46 下午
更新: 27/二月/08 02:47 下午
|
|
| 模块: |
无
|
| 影响版本: |
无
|
| 修复版本: |
无
|
|
|
继承自com.easyjf.web.components.RichComponentAction的类如果配置注入方式"AutoJnjectByType会出现异常:"无法加载属性指定名称的Bean:class com.easyjf.web.Page",导致程序无法运行。
包括两种情况(已知的):
1、使用@Action注解并且没有指定disInject属性。
2、使用xml文件配置module是inject设置为"byType"。
原因是在com.easyjf.web.components.RichComponentAction这个类中有一个Page类型属性:componentPage,这个属性是不能注入的,而这个属性并没有标注为@InjectDisable,因此在使用这个类的时候会去自动注入这个属性,从而出错。
其它可能出现这个错误的情况暂时还没有发现,但是可以一次全部解决这个问题。
解决办法:
给com.easyjf.web.components.RichComponentAction.componentPage加上@InjectDisable注解。
目前svn上的代码已经更正这一错误。
|
|
描述
|
继承自com.easyjf.web.components.RichComponentAction的类如果配置注入方式"AutoJnjectByType会出现异常:"无法加载属性指定名称的Bean:class com.easyjf.web.Page",导致程序无法运行。
包括两种情况(已知的):
1、使用@Action注解并且没有指定disInject属性。
2、使用xml文件配置module是inject设置为"byType"。
原因是在com.easyjf.web.components.RichComponentAction这个类中有一个Page类型属性:componentPage,这个属性是不能注入的,而这个属性并没有标注为@InjectDisable,因此在使用这个类的时候会去自动注入这个属性,从而出错。
其它可能出现这个错误的情况暂时还没有发现,但是可以一次全部解决这个问题。
解决办法:
给com.easyjf.web.components.RichComponentAction.componentPage加上@InjectDisable注解。
目前svn上的代码已经更正这一错误。 |
Show » |
|