开发者社区 问答 正文

spring3 mvc 通配符配置:报错

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

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

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

展开
收起
kun坤 2020-06-05 23:26:07 461 分享 版权
1 条回答
写回答
取消 提交回答
  • 有人回答不?######咕~~(╯﹏╰)b  没有了######开启注解,使用注解配置@Controller######那每个Action都要配置注解,很麻烦啊,struts2 就不需要了######

    估计没有

    ######配置controller吗?不同请求对应不同的controller。你有需求是要多种请求,跳转到同一个controller吗?

    2020-06-05 23:26:14
    赞同 展开评论