Package com.jfinal.plugin.activerecord

Examples of com.jfinal.plugin.activerecord.ActiveRecordPlugin.start()


      /**plugin执行start方法后可以在非web等程序中调用数据库操作*/
      DruidPlugin druidPlugin = new DruidPlugin("jdbc:mysql://127.0.0.1/mymall?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull", "root", "123456");
      druidPlugin.start();
    // 配置ActiveRecord插件
    ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin);
    arp.start();
    }

    /**
     * 简单的返回“Hello World!"字样
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.