开发者社区 问答 正文

spring3 mvc 通配符配置 -java报错

spring mvc 有类似 struts2 的通配符跳转配置吗?

<action name="*_*" class=".." method={1}>

每个方法上都加上注解 是很麻烦的.......

展开
收起
montos 2020-05-29 23:04:53 391 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 开启注解,使用注解配置@Controller######那每个Action都要配置注解,很麻烦啊,struts2 就不需要了######

    估计没有

    ######配置controller吗?不同请求对应不同的controller。

    2020-05-29 23:05:08 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论