首先要判断返回值类型是不是Result<IPage<TdkjPersonnel>>这种类型,我这里不翻译的原因是controller层名字的原因,DictAspect类中切面地址为
@Pointcut("execution(public * org.jeecg.modules..*.*Controller.*(..)) || @annotation(org.jeecg.common.aspect.annotation.AutoDict)") public void excudeService() { }
我的controller层名字为PersonnelControllerApp,后边多了一个“app”字眼,需要将public * org.jeecg.modules..*.*Controller.*(..)改为public * org.jeecg.modules..*.*Controller*.*(..)即可