@Async("register")
public CompletableFuture<List<String>> compileGroovy(String path) {
logger.info("Start compile groovy file: " + path);
List<String> listClassName = DynamicUtil.compileGroovyFile(path);
try {
Thread.sleep(1000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
logger.info("Complete compile groovy file: " + path);
return CompletableFuture.completedFuture(listClassName);
}
DynamicLoadClassAsync.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:daros-dynamic
作者:
评论列表
文章目录