JFinal 1.1.1 进行了诸多优化,添加了一些实用功能,去掉了一些多余的功能,其它变化如下:
1:添加 PostgreSqlDialect 支持 PostgreSql
2: 添加Sqlite3Dialect 支持 Sqlite3
3: AnsiSqlDialect 支持分页
4: C3p0Plugin 默认配置 maxPoolSize、minPoolSize、initialPoolSize 分别改为 100、10、20 以便使默认配置能支持更大规模应用
5: 添加 FakeStaticHandler 支持伪静态 action
6: IDialect 重构为 Dialect 并添加 isSupportAutoIncreatementKey() 等方法
7: 改进Validator.validateUrl() 与 validateEmail(),增加对 null 的处理
8: 删除SessionInViewHandler添加SessionInViewInterceptor
9: 删除 JettyServer 中对 context 值的重复判断
10: ActionHandler 中的catch (Error404Exception e) 提示信息改为 Resource not found
11: Controller.getParaValues 方法重构为 getParas, 原方法 Deprecated
12: JFinalConfig 中删除了 afterJFinalStop 并添加了 beforeJFinalStop,以便在那时能使用 ActiveRecord 等插件功能
13:JFinalFilter中捕捉到的异常为JFinal内部异常,不再抛出。chain.doFilter 仍然抛出 IOException, ServletException
14:Constants.java 中的setJspViewExtension、setFreeMarkerViewExtension、setVelocityViewExtension 添加自动补"."前缀功能
15:去除了 MysqlDialect.forModelUpdate 以及 forDbUpdate 方法中的 limit 1
16:JspRender 添加对 Page
17: Db.batch 设置 setAutoCommit(false),添加Db.batch(...) 系列方法
18: 优化 ActionHandler JFinalFilter 中 log 处理
19: 优化 DbKit.getConnection(),提升性能,消除重复代码
20: ActionHandler JFinalFilter 日志中添加当前请求 url与 queryString
21:改进SqlReporter,解决在某些jdbc驱动下的 ClassCastExcetion
22:添加 com.jfinal.render.CPI.setFreeMarkerProperties(Properties p) 方法,便于在 JFinalConfig.afterJFinalStart()中一次性加载freemarker配置
主页:http://code.google.com/p/jfinal/
下载:http://code.google.com/p/jfinal/downloads/list
来自:开源中国社区