提交 b94b1525 authored 作者:  狄熙卜's avatar 狄熙卜

修改日志

上级 69d377ab
...@@ -17,6 +17,8 @@ import org.reflections.scanners.FieldAnnotationsScanner; ...@@ -17,6 +17,8 @@ import org.reflections.scanners.FieldAnnotationsScanner;
import org.reflections.scanners.MethodAnnotationsScanner; import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.util.ClasspathHelper; import org.reflections.util.ClasspathHelper;
import org.reflections.util.ConfigurationBuilder; import org.reflections.util.ConfigurationBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.IOException; import java.io.IOException;
...@@ -50,6 +52,7 @@ public class EncryptInterceptor implements Interceptor { ...@@ -50,6 +52,7 @@ public class EncryptInterceptor implements Interceptor {
public void setCryptProperties(CryptProperties cryptProperties) { public void setCryptProperties(CryptProperties cryptProperties) {
this.cryptProperties = cryptProperties; this.cryptProperties = cryptProperties;
} }
private static final Logger LOGGER = LoggerFactory.getLogger(EncryptInterceptor.class);
@Override @Override
public Object intercept(Invocation invocation) throws Throwable { public Object intercept(Invocation invocation) throws Throwable {
...@@ -103,7 +106,7 @@ public class EncryptInterceptor implements Interceptor { ...@@ -103,7 +106,7 @@ public class EncryptInterceptor implements Interceptor {
public void setProperties(Properties properties) { public void setProperties(Properties properties) {
if(dbEncryptXmlConfig != null && dbEncryptXmlConfig.getConfigUrl() != null && StringUtils.isNotBlank( dbEncryptXmlConfig.getField("CryptType"))) { if(dbEncryptXmlConfig != null && dbEncryptXmlConfig.getConfigUrl() != null && StringUtils.isNotBlank( dbEncryptXmlConfig.getField("CryptType"))) {
try { try {
System.out.println("已读取加解密配置文件:"+dbEncryptXmlConfig.getConfigUrl().getURL()); LOGGER.error("已读取加解密配置文件:"+dbEncryptXmlConfig.getConfigUrl().getURL());
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论