|
|
@@ -148,6 +148,22 @@ final public class Constants {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * proxy 模块需要 JDK 环境,如果运行环境为 JRE,可以调用本配置方法支持
|
|
|
+ *
|
|
|
+ * 该配置需要引入 cglib-nodep 依赖:
|
|
|
+ * <pre>
|
|
|
+ * <dependency>
|
|
|
+ * <groupId>cglib</groupId>
|
|
|
+ * <artifactId>cglib-nodep</artifactId>
|
|
|
+ * <version>3.2.5</version>
|
|
|
+ * </dependency>
|
|
|
+ * </pre>
|
|
|
+ */
|
|
|
+ public void setToCglibProxyFactory() {
|
|
|
+ setProxyFactory(new com.jfinal.ext.proxy.CglibProxyFactory());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Set encoding. The default encoding is UTF-8.
|
|
|
* @param encoding the encoding
|
|
|
*/
|