修改日志文件生成及读取位置,上传文件格式新增支持js、css、html、vsdx、dmp、7z、ppt、pptx
This commit is contained in:
@@ -7,28 +7,28 @@ import org.springframework.util.StringUtils;
|
||||
@Component
|
||||
public class LogSocketConfig {
|
||||
|
||||
public static String Log_File_Path = "D:/logs/fmt/fmt-server.log";
|
||||
public static String Log_File_Path = "./logs/fmt-server.log";
|
||||
|
||||
public static String Max_Read_Length = "500";
|
||||
|
||||
public static String Read_Interval = "1000";
|
||||
|
||||
@Value("${somkit.logging.socket.log-file-path}")
|
||||
public static void setLog_File_Path(String log_File_Path) {
|
||||
public void setLog_File_Path(String log_File_Path) {
|
||||
if(StringUtils.hasText(log_File_Path)){
|
||||
Log_File_Path = log_File_Path;
|
||||
}
|
||||
}
|
||||
|
||||
@Value("${somkit.logging.socket.max-read-length}")
|
||||
public static void setMax_Read_Length(String max_Read_Length) {
|
||||
public void setMax_Read_Length(String max_Read_Length) {
|
||||
if(StringUtils.hasText(max_Read_Length)){
|
||||
Max_Read_Length = max_Read_Length;
|
||||
}
|
||||
}
|
||||
|
||||
@Value("${somkit.logging.socket.read-interval}")
|
||||
public static void setRead_Interval(String read_Interval) {
|
||||
public void setRead_Interval(String read_Interval) {
|
||||
if(StringUtils.hasText(read_Interval)){
|
||||
Read_Interval = read_Interval;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ somkit:
|
||||
logging:
|
||||
socket:
|
||||
#日志文件地址
|
||||
log-file-path: D:/logs/fmt/fmt-server.log
|
||||
log-file-path: ./logs/fmt-server.log
|
||||
#最大读取展示行数
|
||||
max-read-length: 500
|
||||
#读取间隔时间 毫秒
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
|
||||
<!-- 定义日志的根目录 -->
|
||||
<property name="LOG_HOME" value="/logs/fmt"/>
|
||||
<property name="LOG_HOME" value="./logs"/>
|
||||
<!-- 定义日志文件名称 -->
|
||||
<property name="APP_NAME" value="fmt-server"/>
|
||||
|
||||
|
||||
@@ -53,7 +53,8 @@
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.onload = () => {
|
||||
let accept = "jpg,jpeg,gif,png,svg,doc,docx,xls,xlsx,txt,mp4,mp3,pdf,exe,msi,jar,zip," +
|
||||
"rar,tar,gz,conf,sql,sh,bat,log,out,ico,rpm,deb,dmg,avi,m3u8,ts";
|
||||
"rar,tar,gz,conf,sql,sh,bat,log,out,ico,rpm,deb,dmg,avi,m3u8,ts,js,css,html,vsdx,dmp,7z," +
|
||||
"ppt,pptx";
|
||||
let upload = new axUpload('#upload', {
|
||||
type: 'gallery',
|
||||
url: 'execute',
|
||||
|
||||
@@ -13,4 +13,6 @@
|
||||
```
|
||||
AxUI从v2.0.14升级到v2.1.1
|
||||
使用Promise封装XMLHttpRequest做异步请求
|
||||
修改日志文件生成及读取位置
|
||||
上传文件格式新增支持js、css、html、vsdx、dmp、7z、ppt、pptx
|
||||
```
|
||||
Reference in New Issue
Block a user