我一直以为在web.xml中配置拦截*.action后,在注解路由的时候必须要xxxx.action。
刚才发现,访问的时候xxxx.action,然后@RequestMapping("xxxx")也可以直接访问到的。
也就是说.action这样可以不用加
1 <aop:advisor advice-ref="txAdvice" pointcut="execution(* cn.mrf.ssm.service.impl.*.*(..))"/>
没空格报错
因为int不能判断是否为null,因此,最好都用Integer