开发者社区 问答 正文

前辈,帮我看看这段代码有什么问题?

screenshot
Action里面注入的时候用了这个注解@Autowired 在接口里面用了这个注解、

展开
收起
a123456678 2016-03-13 16:58:56 1801 分享 版权
1 条回答
写回答
取消 提交回答
  • <bean id="userAction" class="com.weibo.action.UserAction"> 
    <property name="privatemessagesService"> 
    <ref bean="privatemessageService"/> 
    </property></bean

    用上面xml这种或者用注解的方式

    Action里面提供Set方法

    2019-07-17 19:02:53
    赞同 展开评论
问答地址: