自己创建的项目中无法使用组织子系统类中的方法
1.问题描述我在一个名为opf的项目中引入了组织系统除了web层之外的所有jar包 2.问题解决通过另外创建一个项目,勾选集成组织子系统(非源码集成),对比配置文件后发现问题在如: 自己建的项目的conf模块下的base-context.xml配置有问题,没有把org.openkoala路径加进去,所以对应的类没有自动注入。 <context:annotation-config/> <context:component-scanbase-package="com.shanlan"> <context:exclude-filtertype="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <context:property-placeholderlocation="classpath:META-INF/props/.properties"ignore-unresolvable="true"/>
<context:annotation-config/> <context:component-scanbase-package="org.openkoala,com.shanlan"> <context:exclude-filtertype="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <context:property-placeholderlocation="classpath:META-INF/props/.properties"ignore-unresolvable="true"/> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |