我一直以为在web.xml中配置拦截*.action后,在注解路由的时候必须要xxxx.action。

刚才发现,访问的时候xxxx.action,然后@RequestMapping("xxxx")也可以直接访问到的。

也就是说.action这样可以不用加

 2.spring aop中正则任意匹配第一个*后空格问题

1 <aop:advisor advice-ref="txAdvice" pointcut="execution(* cn.mrf.ssm.service.impl.*.*(..))"/>

没空格报错

 3.service中整形参数用int还是integer

因为int不能判断是否为null,因此,最好都用Integer

相关文章:

  • 2021-06-16
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-08-09
  • 2021-05-06
相关资源
相似解决方案