@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Action{
long ordercode() default 1;
}
这是我写的自定义注解;
@Action(ordercode=11)
@ResponseBody
@RequestMapping(value = "")
public Object enableOrDisableItemById(@RequestParam("id") Long id,@RequestParam("status") Long status)
我在这个controller方法上写入了@Action注解,可是现在我想让@Action的ordercode获取入参中的id。找了好久没有找到解决方法,有哪位大神能帮帮忙。