1.在lib包中加入Oracle驱动
2.修改generator.properties,注释掉mysql,打开oracle注释
jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
jdbc.driver=oracle.jdbc.driver.OracleDriver
3.设置
jdbc.schema=MEETRICE
jdbc.catalog=
注意:jdbc.schema的值为大写
4.修改jdbc.properties
jdbc.username=xxx
jdbc.password=xxx
jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
jdbc.driver=oracle.jdbc.driver.OracleDriver
5.修改applicationContext-dao.xml
将方言改为org.hibernate.dialect.Oracle9Dialect