ActiveRecordPlugin arp2=null;
String driver=getProperty("oracle.driver");
String url=getProperty("oracle.url");
String username=getProperty("oracle.username");
String password=getProperty("oracle.password");
DruidPlugin druid = new DruidPlugin(url,username,password,driver);
me.add(druid);
arp2=new ActiveRecordPlugin("db2",druid);//设置数据库方言
arp2.setDialect(new OracleDialect());
arp2.setContainerFactory(new CaseInsensitiveContainerFactory());//忽略大小写
//me.add(new EhCachePlugin());
//arp2.addMapping("users", "id",Users.class);
me.add(arp2);
本地没有Oracle,服务器上的,有没办法让它在本地编译通过,而不影响项目正常运行
项目:JFinal