1.在oracle 数据库创建一个序列
例子:create sequence demo_seq
increment by 1
start with 1;
2.在spring 的配置文件里配置
<bean id="seq_demo" class="org.springframework.jdbc.support.incrementer.OracleSequenceMaxValueIncrementer">
<property name="incrementerName" value="demo_seq"></property>
<property name="dataSource" ref="dataSource"></property>
</bean>