Created
September 14, 2012 02:28
-
-
Save wendal/3719452 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JdbcExpertConfigFile jdbcConf = new JdbcExpertConfigFile(); | |
| Map<String, Object> config = new HashMap<String, Object>(); | |
| config.put("pool-home", "~/.nutz/tmp/dao/"); | |
| config.put("pool-max", 2000); | |
| config.put("mysql-engine", "InnoDB"); | |
| Map<String, Class<? extends JdbcExpert>> experts = new HashMap<String, Class<? extends JdbcExpert>>(); | |
| experts.put("h2.*", (Class<? extends JdbcExpert>) Class.forName("org.nutz.dao.impl.jdbc.h2.H2JdbcExpert")); | |
| //........... | |
| jdbcConf.setConfig(config); | |
| jdbcConf.setExperts(experts); | |
| conf = jdbcConf.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment