修改bug
This commit is contained in:
parent
b9b4ae55d8
commit
0a2dd0d38b
|
@ -64,10 +64,10 @@ public class SFTPUtil {
|
||||||
channel.connect();
|
channel.connect();
|
||||||
sftp = (ChannelSftp) channel;
|
sftp = (ChannelSftp) channel;
|
||||||
logger.info("登录成功");
|
logger.info("登录成功");
|
||||||
// }else{
|
}else{
|
||||||
// Channel channel = sshSession.openChannel("sftp");
|
Channel channel = sshSession.openChannel("sftp");
|
||||||
// channel.connect();
|
channel.connect();
|
||||||
// sftp = (ChannelSftp) channel;
|
sftp = (ChannelSftp) channel;
|
||||||
}
|
}
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
try{
|
try{
|
||||||
|
@ -645,6 +645,13 @@ public class SFTPUtil {
|
||||||
}finally {
|
}finally {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(sftp != null){
|
||||||
|
try {
|
||||||
|
disChannel();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[] getDirectoryAndFileName(String fileName) {
|
public static String[] getDirectoryAndFileName(String fileName) {
|
||||||
|
|
|
@ -129,7 +129,6 @@ public class ShiroConfig {
|
||||||
filterChainDefinitionMap.put("/sys/annountCement/show/**", "anon");
|
filterChainDefinitionMap.put("/sys/annountCement/show/**", "anon");
|
||||||
|
|
||||||
//积木报表排除
|
//积木报表排除
|
||||||
filterChainDefinitionMap.put("/jmreport/**", "anon");
|
|
||||||
filterChainDefinitionMap.put("/**/*.js.map", "anon");
|
filterChainDefinitionMap.put("/**/*.js.map", "anon");
|
||||||
filterChainDefinitionMap.put("/**/*.css.map", "anon");
|
filterChainDefinitionMap.put("/**/*.css.map", "anon");
|
||||||
|
|
||||||
|
|
|
@ -670,7 +670,11 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
|
||||||
QueryWrapper<ZyInfoStudent> queryWrapper = QueryGenerator.initQueryWrapper(object, request.getParameterMap());
|
QueryWrapper<ZyInfoStudent> queryWrapper = QueryGenerator.initQueryWrapper(object, request.getParameterMap());
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
|
||||||
ZyInfo zyInfo = zyInfoService.getById(object.getMainId());
|
String ywid = object.getYwid();
|
||||||
|
if(StringUtils.isEmpty(ywid)){
|
||||||
|
ywid = object.getMainId();
|
||||||
|
}
|
||||||
|
ZyInfo zyInfo = zyInfoService.getById(ywid);
|
||||||
|
|
||||||
SysUser teacher = sysUserService.getUserByName(zyInfo.getCreateBy());
|
SysUser teacher = sysUserService.getUserByName(zyInfo.getCreateBy());
|
||||||
// 过滤选中数据
|
// 过滤选中数据
|
||||||
|
|
|
@ -166,7 +166,7 @@ public class DesUtil {
|
||||||
|
|
||||||
String plainClientCredentials="b49d35b7704e41f_uuid:0683126daa811b7da48c67ccd3c498aa";
|
String plainClientCredentials="b49d35b7704e41f_uuid:0683126daa811b7da48c67ccd3c498aa";
|
||||||
|
|
||||||
String base64ClientCredentials = new String(Base64.encodeBase64(plainClientCredentials.getBytes()));
|
String base64ClientCredentials = new String(Base64.encodeBase64String(plainClientCredentials.getBytes()));
|
||||||
System.out.println(base64ClientCredentials);
|
System.out.println(base64ClientCredentials);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,11 @@ package org.jeecg.modules.tools.dbsdkfzpt;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import org.apache.http.NameValuePair;
|
import org.apache.http.NameValuePair;
|
||||||
import org.apache.tomcat.util.codec.binary.Base64;
|
import org.apache.tomcat.util.codec.binary.Base64;
|
||||||
import org.jeecg.modules.wps.controller.KsoSign;
|
|
||||||
import org.springframework.http.*;
|
import org.springframework.http.*;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.Socket;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -68,7 +66,7 @@ public class InterfaceDemo {
|
||||||
|
|
||||||
//通过client_id:client_secret构建认证信息
|
//通过client_id:client_secret构建认证信息
|
||||||
String plainClientCredentials=appNum+":"+oauthCode;
|
String plainClientCredentials=appNum+":"+oauthCode;
|
||||||
String base64ClientCredentials = new String(Base64.encodeBase64(plainClientCredentials.getBytes()));
|
String base64ClientCredentials = new String(Base64.encodeBase64String(plainClientCredentials.getBytes()));
|
||||||
|
|
||||||
//构建请求头信息
|
//构建请求头信息
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
|
|
|
@ -3,9 +3,9 @@ server:
|
||||||
tomcat:
|
tomcat:
|
||||||
max-swallow-size: -1
|
max-swallow-size: -1
|
||||||
error:
|
error:
|
||||||
include-exception: true
|
include-exception: false
|
||||||
include-stacktrace: ALWAYS
|
include-stacktrace: NEVER
|
||||||
include-message: ALWAYS
|
include-message: NEVER
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /jeecg-boot
|
context-path: /jeecg-boot
|
||||||
compression:
|
compression:
|
||||||
|
@ -133,24 +133,21 @@ spring:
|
||||||
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
master:
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
|
||||||
url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
|
url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
# password: ABCabc@123
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
# 多数据源配置
|
# 多数据源配置
|
||||||
# multi-oracle:
|
multi-oracle:
|
||||||
# url: jdbc:oracle:thin:@//192.168.2.14:1521/orcl
|
url: jdbc:mysql://127.0.0.1:3306/dbsd_zjpt?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
|
||||||
# username: kczx
|
username: root
|
||||||
# password: kczx
|
password: root
|
||||||
# driver-class-name: oracle.jdbc.OracleDriver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
|
||||||
# multi-oracle:
|
# multi-oracle:
|
||||||
# url: jdbc:oracle:thin:@192.168.2.14:1521:orcl?useUnicode=true&characterEncoding=utf8
|
# url: jdbc:oracle:thin:@//202.198.129.24:1521/orcl
|
||||||
# username: kczx
|
# username: C##XSKC
|
||||||
# password: kczx
|
# password: mAPP2t2ABAfx7
|
||||||
# driver-class-name: oracle.jdbc.OracleDriver
|
# driver-class-name: oracle.jdbc.OracleDriver
|
||||||
#redis 配置
|
#redis 配置
|
||||||
redis:
|
redis:
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -31,6 +31,8 @@
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
|
<tomcat.version>9.0.90</tomcat.version>
|
||||||
|
|
||||||
<!-- 微服务 -->
|
<!-- 微服务 -->
|
||||||
<spring-cloud.version>2021.0.3</spring-cloud.version>
|
<spring-cloud.version>2021.0.3</spring-cloud.version>
|
||||||
<spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
|
<spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
|
||||||
|
|
Loading…
Reference in New Issue