You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model model = new Model();ClassPool pool = ClassPool.getDefault();ClassClassPath ccpath = new ClassClassPath(model.getClass());pool.insertClassPath(ccpath);CtClass ctClass = pool.get("com.project.Model");
The text was updated successfully, but these errors were encountered:
网上说ClassPath添加ClassPool中, 请问这块代码如何使用
如下代码:
Model model = new Model();ClassPool pool = ClassPool.getDefault();ClassClassPath ccpath = new ClassClassPath(model.getClass());pool.insertClassPath(ccpath);CtClass ctClass = pool.get("com.project.Model");
The text was updated successfully, but these errors were encountered: