Giter Club home page Giter Club logo

jfinal-ext's Introduction

JFinal-Ext

Jfinal-ext是对java极速web框架jfinal (https://github.com/jfinal/jfinal) 的一个补充。 使用手册 https://github.com/b1412/jfinal-ext/blob/master/doc/doc.org

Plugin扩展

自定绑定表 AutoTableBindPlugin

扫描clsspath和lib中继承了model的类自动注册,可选择不同的命名规则自定映射表名,也可以在每一个model上用注解指定表名

类似ibatis在xml中管理sql SqlInXmlPlugin

xml配置格式

<sqlGroup name="blog" >
      <sql id="findBlog">select * from blog</sql>
      <sql id="findUser">select * from user</sql>
</sqlGroup>

获取配置的sql SqlManager.sql(“blog.findBlog”)

jms消息处理 JmsPlugin

JmsKit.sendQueue(“q1”, new M(), “a”);

任务调度 QuartzPlugin Cron4jPlugin

Quartz

调度任务实现org.quartz.Job接口

job.properties中配置任务

#JobA
a.job=test.com.jfinal.plugin.quzrtz.JobA
a.cron=*/5 * * * * ?
a.enable=true
#JobB
b.job=test.com.jfinal.plugin.quartz.JobB
b.cron=*/10 * * * * ?
b.enable=false

Cron4j

调度任务实现java.lang.Runnable接口

job.properties中配置任务

#JobA
a.job=test.com.jfinal.plugin.cron4j.JobA
a.cron=* * * * *
a.enable=true
#JobB
b.job=test.com.jfinal.plugin.cron4j.JobB
b.cron=* * * * *
b.enable=false

ConfigPlugin

分优先级加载配置文件 在团队开发中如果自己有测试配置需要长期存在但是又不需要提交中心库的时候 可以采用分级配置加载的策略。 如中心库中有config.properties这个配置,你可以创建 config-test.properties文件,配置相同的key,ConfigKit中的方法会优先加载 xx-test.properties文件。

Render扩展

DwzRender

ExcelRender

通过list数据生成excel,支持的数据类型为map ,record , model。

AmChartsRender

FreeMarkerXMLRender

利用freemaker生成xml

jfinal-ext's People

Contributors

b1412 avatar jerrypnz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.