11111
parent
d0012fadf8
commit
bbd20c85ed
|
@ -18,7 +18,6 @@ import java.io.File;
|
||||||
*/
|
*/
|
||||||
public class SourceCodeComplier extends ClassLoader {
|
public class SourceCodeComplier extends ClassLoader {
|
||||||
|
|
||||||
|
|
||||||
private static JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
private static JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
||||||
|
|
||||||
private static StandardJavaFileManager fileManager = compiler.getStandardFileManager(null,null,null);
|
private static StandardJavaFileManager fileManager = compiler.getStandardFileManager(null,null,null);
|
||||||
|
@ -37,7 +36,6 @@ public static void javaCompilerPath(String path){
|
||||||
* 输入编译的文件路径
|
* 输入编译的文件路径
|
||||||
* @param filePath
|
* @param filePath
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static void javaCompilerFile(String... filePath){
|
public static void javaCompilerFile(String... filePath){
|
||||||
int filePathLength = filePath.length;
|
int filePathLength = filePath.length;
|
||||||
File[] files = new File[filePathLength];
|
File[] files = new File[filePathLength];
|
||||||
|
@ -45,16 +43,12 @@ public static void javaCompilerFile(String... filePath){
|
||||||
for (int i = 0; i < filePathLength; i++) {
|
for (int i = 0; i < filePathLength; i++) {
|
||||||
files[i] = new File(filePath[i]);
|
files[i] = new File(filePath[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 可同时编译多个java源文件
|
* 可同时编译多个java源文件
|
||||||
* @param file
|
* @param file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
public static void javaCampiler(File... file){
|
public static void javaCampiler(File... file){
|
||||||
|
|
||||||
Iterable<? extends JavaFileObject> comilationUnits = fileManager.getJavaFileObjects(file);
|
Iterable<? extends JavaFileObject> comilationUnits = fileManager.getJavaFileObjects(file);
|
||||||
|
|
|
@ -42,7 +42,6 @@ public class DataSourceDisposeController {
|
||||||
/**
|
/**
|
||||||
* 数据非空
|
* 数据非空
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@PostMapping("/notEmpty/{dataSource}")
|
@PostMapping("/notEmpty/{dataSource}")
|
||||||
public Result notEmpty(@PathVariable("dataSource") Object dataSource){
|
public Result notEmpty(@PathVariable("dataSource") Object dataSource){
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class RuleEngineVersionController {
|
||||||
@PostMapping("/saveCode")
|
@PostMapping("/saveCode")
|
||||||
public Result saveCode(@RequestBody RuleEngineVersion ruleEngineVersion){
|
public Result saveCode(@RequestBody RuleEngineVersion ruleEngineVersion){
|
||||||
|
|
||||||
|
log.info("==>"+ruleEngineVersion.getVersionClazz());
|
||||||
UpdateWrapper<RuleEngineVersion> updateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<RuleEngineVersion> updateWrapper = new UpdateWrapper<>();
|
||||||
updateWrapper.eq("id",ruleEngineVersion.getId()).set("versionClazz",ruleEngineVersion.getVersionClazz());
|
updateWrapper.eq("id",ruleEngineVersion.getId()).set("versionClazz",ruleEngineVersion.getVersionClazz());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue