`
hulianwang2014
  • 浏览: 692621 次
文章分类
社区版块
存档分类
最新评论
  • bcworld: 排版成这样,一点看的欲望都没有了
    jfinal

jfinal notes

 
阅读更多
当用户访问系统时,所有请求先进过在web.xml中配置的com.jfinal.core.JFinalFilter这个核心类,
先执行这个类的的init方法,实例化jfinalConfig对象,这个对象是需要开发者自己定义一个类继承
JFinalConfig类,实现几个抽象方法,其中public void configConstant(Constantsme)方法是配置数据库的信息,
开发模式,视图的类型等,public void configRoute(Routes me)方法是配置访问路径的路由信息,
public void configPlugin(Plugins me) 方法是配置数据库连接,其他一些插件,对象模型, public void configInterceptor(Interceptors me)方法是配置全局拦截器,public void configHandler(Handlers me)
是配置处理器,此方法会得到访问的url,进行处理。此类需要在web.xml中配置,如下:
<filter>
<filter-name>jfinal</filter-name>
<filter-class>com.jfinal.core.JFinalFilter</filter-class>
<init-param>
<param-name>configClass</param-name>
<param-value>com.demo.config.DemoConfig</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>jfinal</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
在JFinalFilter类中当执行完init方法后,会执行jfinal类的init方法,此方法是先定义得到工程的路径,再初始化开发者刚刚写的
继承JFinalConfig类的类,读入配置信息。当init方法执行完后,执行doFilter方法,得到用户访问的url,分到不同的handler中进行处理
分享到:
评论

相关推荐

    Final IK 最新版2.1

    For the full history of release notes, see FinalIK Change Log.pdf in the package. Upgrade Guide - MAKE A BACKUP! Open a new scene, delete “Plugins/RootMotion” and reimport. Also reimport ...

    Final IK.zip

    Please see the Release Notes for the full list of update details. Final-IK 1.8 is fully compatible with PuppetMaster 0.8 and Unity 5/2017/2018/2019(beta) versions. What can I do with Final IK? ...

    nmap 扫描应用(英文版)

    Open Source Security Tool Turbo Talks • Nmap Scripting Engine • IPv6 • Zenmap GUI • Nmap Suite • Final Notes & Q&A

    The Art of Assembly Language Programming

    Register Indirect Addressing Modes 4.6.4.2 - 80386 Indexed, Base/Indexed, and Base/Indexed/Disp Addressing Modes 4.6.4.3 - 80386 Scaled Indexed Addressing Modes 4.6.4.4 - Some Final Notes ...

    Final+IK+1.9.unitypackage

    The final Inverse Kinematics solution for ...Please see the Release Notes for the full list of update details. Final IK 1.9 is fully compatible with PuppetMaster 0.9 and Unity 2017/2018/2019 versions.

    Final IK 1.9.unitypackage

    For the full history of release notes, see FinalIK Change Log.pdf in the package. Upgrade Guide - MAKE A BACKUP! Open a new scene, delete “Plugins/RootMotion” and reimport. Also reimport ...

    Final IK 1.9 当前时间最新版本

    Update (1.9): Version 1.9 brings many ...Please see the Release Notes for the full list of update details. Final IK 1.9 is fully compatible with PuppetMaster 0.9 and Unity 2017/2018/2019 versions.

    Unity Final IK v2.0版本 IK骨骼动画插件

    仅供学习使用,商用请购买正版 ...Please see the Release Notes for the full list of update details. Final IK 2.0 is fully compatible with PuppetMaster 1.0 and Unity 2017/2018/2019/2020 versions.

    Final IK v2.0 IK骨骼动画插件2020年10月15日最新版

    For the full history of release notes, see FinalIK Change Log.pdf in the package. Upgrade Guide - MAKE A BACKUP! Open a new scene, delete “Plugins/RootMotion” and reimport. Also reimport ...

    SD Specifications_Part_1_Physical_Layer_Specification_Ver3.00_Final_090416.pdf

    SD Specifications_Part_1_Physical_Layer_Specification_Ver3.00_Final_090416

    Lazarus1995#Dc-Notes#常见关键字问题1

    1. final的关键字提高了性能,JVM和java应用会缓存final变量 2. final变量可以在多线程环境下保持线程安全 3. 使用final的关键字提

    osm-notes-export

    OpenStreetMap-Notes导出工具一种基于时间和空间提取Open...-initial-creation-timestamp 2015-04-10 \ --final-creation-timestamp 2015-05-15 \ --bounding-box 80.0586,26.3477,88.1993,30.4469 使用标志node --stac

    Universal Import Fixer (UIF) v1.0 (FINAL) by Magic_h2001

    Directly Imports and Hashed Imports. &lt;br&gt; Notes: ======= This tool is an Import Fixer (not Import Rebuilder ImpRec etc) and Just work in memory of target process. dont tell me how to ...

    CAPLQuickstart_Generic_2018_Final.pdf

    Agenda Important information before getting started Visual Sequencer (GUI based programming (Subset of CAPL...Notes on Panel creation and use Where to find additional information Contact Information

    程序员考试刷题-software-dev-notes-final:软件开发笔记最终版

    程序员考试刷题软件开发笔记第 1 部分 [目录] 模块 1:介绍 软件工程是我们用来设计、构建、维护程序的工具/过程 开发好的代码还有很多,没有一种正确的方法来开发软件 软件应该是人类可以理解的、易于维护和可重用...

    ZhuoZhuoCrayon#CS-Notes#60. n 个骰子的点数1

    j++) /* 使用 i 个骰子最小点数为 i */final double totalNum = Math.pow(6, n);/* 旋转标记 *//* 旋转

    cs30-final-project

    GitHub上的Python文件: 用户指南参见user_guide.md和developing_notes.md 代码内容: 列表,元组,字典的使用磁贴根据其位置元组存储在字典中-(行,列) 参见grid_world.py ,第20、60和121行敌人存储在列表中...

    final-year-projects.notes:关于如何管理(第一年)“最后一年”项目并取得成功的说明

    期末项目 关于如何管理(第一年)“最后一年”项目并取得成功的说明。 在线浏览笔记@

    Beatles9527#StudyNotes#_1Java类更改常量后编译不生效1

    问题原因:在Java文件中,指向编译时static final的静态常量, 会被在运行时解析为一个局部的常量值(也就是说静态常量在编译后,成为了常量,而不是原先

    Universal Import Fixer (UIF) v1.2.rar

    Notes: ====== This tool is an Import Fixer (not Import Rebuilder ImpRec etc) and Just work in memory of target process. dont tell me how to use this Tool...if you can not use this Simple Tool plz DRAG...

Global site tag (gtag.js) - Google Analytics