import com.jfinal.aop.Invocation; public class UserService$$EnhancerByJFinal extends UserService { public void save(com.zhidan.ccc.model.User p0, java.util.List<java.lang.Long> p1) { Invocation inv = new Invocation(this, 1L, args -> { UserService$$EnhancerByJFinal.super.save( (com.zhidan.ccc.model.User)args[0], (java.util.List<java.lang.Long>)args[1] ); return null; } , p0, p1); inv.invoke(); } } 2019-05-31 19:14:01,317 [管理平台] [RMI TCP Connection(3)-127.0.0.1] ERROR [com.jfinal.proxy.ProxyCompiler] - /UserService$$EnhancerByJFinal.java:3: 错误: 程序包com.jfinal.aop不存在 import com.jfinal.aop.Invocation; ... Caused by: java.lang.ClassNotFoundException: com.zhidan.ccc.app.service.UserService$$EnhancerByJFinal at java.lang.ClassLoader.findClass(ClassLoader.java:530) at com.jfinal.proxy.ProxyClassLoader.findClass(ProxyClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.jfinal.proxy.ProxyClassLoader.loadProxyClass(ProxyClassLoader.java:49) ... 82 more
如上为报错信息。
代码:
static UserService userService = Aop.get(UserService.class);
记得搞定后回来分享一下