开发者社区 问答 正文

如何配置spring+struts?

如何配置spring+struts?

展开
收起
真的很搞笑 2021-10-30 14:59:41 302 分享 版权
1 条回答
写回答
取消 提交回答
  • 在struts-config.xml加入一个插件,通过它加载applicationContext.xml

    在struts-config.xml修改action-mapping标记,具体action交给了DelegateActionProxy
    
    通过DelegateActionProxy进入一spring的环境。
    
    在spring的applicationContext.xml加入<bean name="/login" class="" singleton="false" />
    
    2021-10-30 14:59:54
    赞同 展开评论
问答地址: