目录
第一章 快速上手 ..................................................................................................................... 5
1.1 创建项目 ........................................................................................................................ 5
1.2 放入 JFinal 库文件 ......................................................................................................... 8
1.3 修改 web.xml ................................................................................................................. 8
1.4 添加 java 文件 ............................................................................................................... 8
1.5 启动项目 ........................................................................................................................ 9
1.6 开启浏览器看效果 ...................................................................................................... 11
第二章 JFinalConfig ................................................................................................................ 12
2.1 概述 .............................................................................................................................. 12
2.2 configConstant(Constants me) ...................................................................................... 12
2.3 configRoute(Routes me) ................................................................................................ 12
2.4 configPlugin (Plugins me) .............................................................................................. 14
2.5 configInterceptor (Interceptors me) ............................................................................. 14
2.6 configHandler (Handlers me) ........................................................................................ 15
第三章 Controller ................................................................................................................... 16
3.1 概述 .............................................................................................................................. 16
3.2 Action............................................................................................................................. 16
3.3 getPara 系列方法 .......................................................................................................... 16
3.4 setAttr 方法 ................................................................................................................... 18
3.5 render 系列方法 ........................................................................................................... 18
第四章 Interceptor ................................................................................................................. 20
4.1 概述 .............................................................................................................................. 20
4.2 Interceptor 应用 ............................................................................................................ 20
4.3 Interceptor 配置 ............................................................................................................ 20
4.4 ActionInvocation ........................................................................................................... 21
4.5 InterceptorStack ............................................................................................................ 22
第五章 ActiveRecord.............................................................................................................. 23
5.1 概述 .............................................................................................................................. 23