mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
jar 运行不扫描 子目录
This commit is contained in:
parent
ee55395dd1
commit
34e46057fd
6
PLANS.md
6
PLANS.md
@ -3,4 +3,8 @@
|
||||
1. 程序宕机处理
|
||||
2. 主要管理页面兼容移动端
|
||||
3. 项目监控完善
|
||||
4. ssl 到期提醒、快捷续签
|
||||
4. ssl 到期提醒、快捷续签
|
||||
|
||||
### 待优化解决
|
||||
|
||||
1. 支持更多压缩包
|
@ -187,7 +187,7 @@ public class ProjectInfoModel extends BaseModel {
|
||||
if (!file.isFile()) {
|
||||
continue;
|
||||
}
|
||||
if (StrUtil.endWith(file.getName(), ".jar", true)) {
|
||||
if (!StrUtil.endWith(file.getName(), ".jar", true)) {
|
||||
continue;
|
||||
}
|
||||
files1.add(file);
|
||||
|
33
modules/agent/src/test/java/TestFile.java
Normal file
33
modules/agent/src/test/java/TestFile.java
Normal file
@ -0,0 +1,33 @@
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* Created by jiangzeyin on 2019/4/22.
|
||||
*/
|
||||
public class TestFile {
|
||||
public static void main(String[] args) throws IOException {
|
||||
InputStream inputStream = new FileInputStream("D:\\SystemDocument\\Desktop\\Desktop.zip");
|
||||
|
||||
String code = IoUtil.readHex28Upper(inputStream);
|
||||
System.out.println(code);
|
||||
|
||||
System.out.println(FileUtil.getMimeType("D:\\SystemDocument\\Desktop\\Desktop.zip"));
|
||||
|
||||
|
||||
System.out.println(FileUtil.getMimeType("D:\\SystemDocument\\Desktop\\Desktop.tar.gz"));
|
||||
|
||||
System.out.println(FileUtil.getMimeType("D:\\SystemDocument\\Desktop\\Desktop.7z"));
|
||||
|
||||
ZipUtil.unzip(new File("D:\\SystemDocument\\Desktop\\Desktop.tar.gz"), new File("D:\\SystemDocument\\Desktop\\Desktop.7z\""));
|
||||
|
||||
ZipUtil.unzip(new File("D:\\SystemDocument\\Desktop\\Desktop.7z"), new File("D:\\SystemDocument\\Desktop\\Desktop.7z\""));
|
||||
|
||||
System.out.println(FileUtil.extName("test.zip"));
|
||||
}
|
||||
}
|
@ -60,9 +60,9 @@
|
||||
var cachePortInfo;
|
||||
var config = {
|
||||
cols: [[
|
||||
{field: 'count', title: '项目个数',},
|
||||
{field: 'runCount', title: '运行中个数'},
|
||||
{field: 'stopCount', title: '未运行个数'},
|
||||
{field: 'count', title: '项目个数', width: "10%"},
|
||||
{field: 'runCount', title: '运行中个数', width: "10%"},
|
||||
{field: 'stopCount', title: '未运行个数', width: "10%"},
|
||||
]],
|
||||
url: "./node_status",
|
||||
loading: true,
|
||||
|
@ -13,7 +13,7 @@
|
||||
<body>
|
||||
#if($user.isServerManager())
|
||||
<div class="layui-row">
|
||||
<button onclick="editProject('');" class="layui-btn layui-btn-sm">创建关联项目</button>
|
||||
<button onclick="editProject('');" class="layui-btn layui-btn-sm">添加关联项目</button>
|
||||
</div>
|
||||
#end
|
||||
#if($array && $array.size()>0)
|
||||
|
Loading…
Reference in New Issue
Block a user