Commit bcd9b938 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.天气数据接收定时任务,解决代码扫描问题,修改文件读取相关代码,解决资源未关流问题;
2.修改登录验证码生成工具类,解决代码扫描问题,修复随机数不安全问题;
3.删除除主程序启动类外其他启动类模块,解决代码扫描问题;
4.删除自定义httputlis类,解决代码扫描问题,替换部分代码远程调用方法;
5.重构光伏预测模块下载电站实际发电数据导入模板接口,解决代码扫描问题;
6.重构光伏预测模块导入电站实际发电数据接口,解决代码扫描问题;
7.删除公用excel导入导出工具类及poi相关pom依赖,解决代码扫描问题;
8.光伏功率预测模块,增加查询线路列表接口,解决页面接口报错问题;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 63bca7e2
...@@ -21,8 +21,7 @@ public class ManifestComponentInfoHelper { ...@@ -21,8 +21,7 @@ public class ManifestComponentInfoHelper {
try { try {
Enumeration<URL> resources = classLoader.getResources("META-INF/MANIFEST.MF"); Enumeration<URL> resources = classLoader.getResources("META-INF/MANIFEST.MF");
while (resources.hasMoreElements()) { while (resources.hasMoreElements()) {
try { try (InputStream stream = resources.nextElement().openStream()) {
InputStream stream = resources.nextElement().openStream();
final HashMap<String, String> manifestProperties = new HashMap<>(10); final HashMap<String, String> manifestProperties = new HashMap<>(10);
final Manifest manifest = new Manifest(stream); final Manifest manifest = new Manifest(stream);
Attributes attributes = manifest.getMainAttributes(); Attributes attributes = manifest.getMainAttributes();
...@@ -38,13 +37,11 @@ public class ManifestComponentInfoHelper { ...@@ -38,13 +37,11 @@ public class ManifestComponentInfoHelper {
String k = String.format("%s:%s", manifestComponentInfo.getGroupName(), manifestComponentInfo.getArtifactid()); String k = String.format("%s:%s", manifestComponentInfo.getGroupName(), manifestComponentInfo.getArtifactid());
manifestComponentInfoHashMap.put(k, manifestComponentInfo); manifestComponentInfoHashMap.put(k, manifestComponentInfo);
} }
stream.close(); } catch (IOException ignored) {
} catch (IOException E) {
// handle
} }
} }
} catch (Exception ex) { } catch (Exception ignored) {
System.out.println(ex.getMessage());
} }
} }
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment