| | |
| | | |
| | | private final static String DOWNLOAD = "download"; |
| | | |
| | | private final static String SPLIT = "\\"; |
| | | |
| | | private static final Log log = LogFactory.getLog(LogAspect.class); |
| | | |
| | | @Pointcut("@annotation(com.lf.server.aspect.SysLog)") |
| | |
| | | // 设置模块 |
| | | Api api = clazz.getAnnotation(Api.class); |
| | | if (api != null) { |
| | | oe.setModular(api.tags()[0]); |
| | | String[] strs = api.tags()[0].split(SPLIT); |
| | | oe.setModular1(strs[0]); |
| | | oe.setModular1(strs[1]); |
| | | } |
| | | |
| | | // 设置类名\方法名、类别 |
| | |
| | | |
| | | operateService.insertOperate(oe); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getStackTrace()); |
| | | log.error(ex.getMessage() + ex.getStackTrace() + "\n"); |
| | | } |
| | | } |
| | | |