我的错误主要有以下几个方面的原因:
@Controller(value = “bulletinAction”)、@Service(“bulletinService”)、@Repository(“secBulletinDAO”)与strut配置文件中的action名字不匹配,一般是因为首字母大小写的关系
BulletinServiceImpl中既使用了@Service(“bulletinService”),又使用了
@Autowired
private BulletinService bulletinService;spring.xml文件中未配置 component-scan的base-package
<aop:aspectj-autoproxy proxy-target-class="true"/>
<context:component-scan base-package="com.**,com.**.service,com.**.service.impl" name-generator="com.eshore.cmdb.common.base.spring.FullClassNameBeanNameGenerator" />
<context:annotation-config />