11111
parent
ba0e92c608
commit
949586fd13
|
@ -15,9 +15,9 @@ public class ENGINE_VALUE_VFD1000_V1 extends DataEngineValueActuator {
|
|||
public void run() {
|
||||
DataValue dataValue = get();
|
||||
if (dataValue.getValue() == null){
|
||||
|
||||
System.out.println("数据为空");
|
||||
|
||||
System.out.println("数据为空,需要丢弃");
|
||||
}else{
|
||||
System.out.println("数据非空:"+dataValue.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* 实现项目启动时,把文件下载到服务器里
|
||||
*/
|
||||
@Log4j2
|
||||
@Component
|
||||
//@Component
|
||||
public class DownloadOss implements ApplicationRunner {
|
||||
|
||||
private static final String endPoint = "oss-cn-beijing.aliyuncs.com";
|
||||
|
|
|
@ -123,20 +123,18 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
|||
serverFile.getParentFile().mkdirs();
|
||||
}
|
||||
serverFile.mkdirs();
|
||||
|
||||
try (BufferedWriter writer = new BufferedWriter(new FileWriter(filePath))) {
|
||||
|
||||
writer.write(versionClazz);
|
||||
System.out.println("文件已成功创建并写入Java源码。");
|
||||
} catch (IOException e) {
|
||||
System.err.println("发生错误:" + e.getMessage());
|
||||
}
|
||||
|
||||
File classFile = new File(engineWorkClassPath, ossFilePath2);
|
||||
//如果目录不存在,则创建目录
|
||||
if (!classFile.getParentFile().exists()) {
|
||||
classFile.getParentFile().mkdirs();
|
||||
}
|
||||
// File classFile = new File(engineWorkClassPath, ossFilePath2);
|
||||
// //如果目录不存在,则创建目录
|
||||
// if (!classFile.getParentFile().exists()) {
|
||||
// classFile.getParentFile().mkdirs();
|
||||
// }
|
||||
|
||||
////下载文件到指定服务器目录下
|
||||
// OssUtil.downloadFileForBucket(bucketName, ossFilePath, filePath);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue