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