Unable to instantiate Action,defined for 'register' in namespace '/'Error

报的错

dao实现类

action注入接口

spring配置
struts配置

web.xml

不是spring配置少了 <context:annotation-config />

之类的追问

加了还是一样的错误

追答

没有匹配的 userDao 类型,把 com.xxx.dao 的路径添加上呢

追问

注入实现类就有啊

温馨提示:答案为网友推荐,仅供参考