mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
remove methods
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package cn.hutool.extra.aop;
|
||||
|
||||
import cn.hutool.core.classloader.ClassLoaderUtil;
|
||||
import cn.hutool.extra.aop.aspects.Aspect;
|
||||
import cn.hutool.extra.aop.proxy.ProxyFactory;
|
||||
import cn.hutool.core.reflect.ClassUtil;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Proxy;
|
||||
@@ -69,6 +69,6 @@ public final class ProxyUtil {
|
||||
* @return 代理类
|
||||
*/
|
||||
public static <T> T newProxyInstance(final InvocationHandler invocationHandler, final Class<?>... interfaces) {
|
||||
return newProxyInstance(ClassUtil.getClassLoader(), invocationHandler, interfaces);
|
||||
return newProxyInstance(ClassLoaderUtil.getClassLoader(), invocationHandler, interfaces);
|
||||
}
|
||||
}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package cn.hutool.extra.template.engine.freemarker;
|
||||
|
||||
import cn.hutool.core.classloader.ClassLoaderUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.reflect.ClassUtil;
|
||||
import cn.hutool.extra.template.Template;
|
||||
import cn.hutool.extra.template.TemplateConfig;
|
||||
import cn.hutool.extra.template.TemplateEngine;
|
||||
@@ -99,7 +99,7 @@ public class FreemarkerEngine implements TemplateEngine {
|
||||
|
||||
switch (config.getResourceMode()) {
|
||||
case CLASSPATH:
|
||||
cfg.setTemplateLoader(new ClassTemplateLoader(ClassUtil.getClassLoader(), config.getPath()));
|
||||
cfg.setTemplateLoader(new ClassTemplateLoader(ClassLoaderUtil.getClassLoader(), config.getPath()));
|
||||
break;
|
||||
case FILE:
|
||||
try {
|
||||
|
Reference in New Issue
Block a user