2019-12-11 16:14

@JFinal 4.2 没有问题是因为4.2 没有getClassPath() 这个方法,这个方法是4.2 之后处理tomcat classpath丢失问题而出现的

2019-12-06 19:40

你要看 close是不是真正关闭连接

2019-12-05 21:58

可以使用slf4j 将jdklog桥接到 任何log实现上

2019-12-04 19:12

这个字段什么类型的

2019-12-03 21:20

一次部署有这么多问题,你也是相当6了

2019-12-02 11:40

@JFinal 经过一番调试报错原因找到了,ProxyCompiler.java 里面的getClassPath()方法 获取的windows系统路径中如果带有空格 获取到classpath会变成D:/Program%20Files/java/maven-3.6.1/.m2/repository/com/jfinal/jfinal/4.7/jfinal-4.7.jar D:\Program Files文件夹中间有一个空格 这样会造成classpath错误 自然报错 程序包com.jfinal.aop不存在 我把maven 的本地仓库地址 移动到一个没有空格的文件夹 问题得到了解决,所以我想 获取classpath 这块逻辑可以想办法处理下文件夹带有空格的classpath路径

2019-12-01 20:40

@JFinal ProxyManager.me().setProxyFactory(new CglibProxyFactory()); 设置这个就没报错了...

2019-12-01 20:34

@JFinal 我用undertow 在4.7 今天也遇到这个问题了 回退到4.2 正常了...

2019-12-01 15:23

@铂金蛋蛋 https://jfinal.com/share/1918 我的另一种解决方案 欢迎指点

2019-12-01 15:12

@JFinal 可是我看源码
/**
* Returns the value of a request parameter and convert to Integer.
* @param name a String specifying the name of the parameter
* @return a Integer representing the single value of the parameter
*/
public Integer getParaToInt(String name) {
return toInt(request.getParameter(name), null);
}
是这样的

2019-12-01 14:11

另外 @JFinal controller getParaToXXX 方法应该直接调用getPara方法而不是调用request.getParameter,这样只需要重写getPara就行了,否则还需要重写一堆getParaToXXX

2019-11-30 13:56

@JFinal 不可以 参数注入在拦截器之前执行了,request.getParameterMap()为空,getBean在拦截器之后执行 request.getParameterMap()不为空