parent
64d913dc47
commit
60024e3cda
@ -0,0 +1,20 @@
|
||||
package com.dsideal.base.Util;
|
||||
|
||||
import com.jcraft.jsch.JSch;
|
||||
import com.jcraft.jsch.Session;
|
||||
|
||||
public class SSHConnector {
|
||||
public static Session createSSHSession(String host, int port, String username, String password) {
|
||||
JSch jsch = new JSch();
|
||||
Session session = null;
|
||||
try {
|
||||
session = jsch.getSession(username, host, port);
|
||||
session.setConfig("StrictHostKeyChecking", "no");
|
||||
session.setPassword(password);
|
||||
session.connect();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return session;
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
# 上传文件的临时路径
|
||||
uploadTempPath: c:/Windows/Temp
|
||||
# JWT
|
||||
SECRET: ZXZnZWVr5b+r5LmQ5L2g55qE5Ye66KGM
|
||||
# 生成Token的密码
|
||||
CookieMd5SingPwd: DsideaL4r5t6y7u
|
||||
|
||||
# 系统的启动路径
|
||||
rootPath : /usr/local/dsBase/classes
|
||||
|
||||
mysql:
|
||||
# 数据库信息
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
user: root
|
||||
password: Password123@mysql
|
||||
jdbcUrl : jdbc:mysql://localhost:3306/ds_db?rewriteBatchedStatements=true&useUnicode=true&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false
|
||||
|
||||
|
||||
redis:
|
||||
ip: 10.10.14.210
|
||||
port: 18890
|
||||
password:
|
||||
|
||||
# 数据可视化
|
||||
dataEase:
|
||||
dataVisualizationName: 黄海测试的市州地图
|
||||
publish_url: http://10.10.14.203:8100
|
||||
# ==============================================================
|
||||
|
||||
excel:
|
||||
# 导出excel 的模板配置路径
|
||||
excelExportTemplatePathSuffix: /ExcelExportTemplate/
|
||||
# 导入excel 的模板配置路径
|
||||
ExcelImportTemplatePathSuffix: /ExcelImportTemplate/
|
||||
|
||||
# 上传文件地址
|
||||
upload:
|
||||
path: D:/dsWork/YunNanDsBase/WebRoot/upload
|
Loading…
Reference in new issue