Package net.hasor.db.provider

Examples of net.hasor.db.provider.SimpleDBModule


*/
public class StartModule extends WebModule {
    @Override
    public void loadModule(WebApiBinder apiBinder) throws Throwable {
        //1.启用Hasor-DB 插件(使用c3p0连接池)
        apiBinder.installModule(new SimpleDBModule("default", buildC3p0(apiBinder)));
        //2.启用Hasor-AR
        apiBinder.installModule(new SimpleDBModule("default", buildC3p0(apiBinder)));
        //3.Web MVC
        apiBinder.installModule(new WebControllerModule());
    }
View Full Code Here

TOP

Related Classes of net.hasor.db.provider.SimpleDBModule

Copyright © 2018 www.massapicom. 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.