Commit 3d77f7a7 authored by matianhao's avatar matianhao

[资产资源接口] <update> 修改获取文件路径

parent 5c8a93cc
......@@ -13,7 +13,7 @@ import javax.crypto.spec.SecretKeySpec;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.security.Key;
import java.security.Security;
......@@ -157,7 +157,8 @@ public class AESUtils {
// 读取js文件
ClassPathResource classPathResource = new ClassPathResource("js/des.js");
FileReader reader = new FileReader(classPathResource.getFile());
InputStreamReader reader = new InputStreamReader(classPathResource.getInputStream());
engine.eval(reader);
String encryptContent = "";
......
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