tk Mapper Oracle数据库插入时返回主键

仰天大笑出门去,我辈岂是蓬蒿人。这篇文章主要讲述tk Mapper Oracle数据库插入时返回主键相关的知识,希望能为你提供帮助。
主键生成策略

@Id @GeneratedValue(strategy = GenerationType.IDENTITY, generator="SELECT F_DEMO_SEQ.NEXTVAL FROM DUAL") private Long id;

MapperScannerConfigurer
< bean class="tk.mybatis.spring.mapper.MapperScannerConfigurer"> < property name="basePackage" value="https://www.songbingjia.com/android/com.wjz.mapper"/> < property name="sqlSessionFactoryBeanName" value="https://www.songbingjia.com/android/sqlSessionFactory"/> < property name="properties"> < value> mappers=tk.mybatis.mapper.common.Mapper ORDER=BEFORE < /value> < /property> < /bean>

【tk Mapper Oracle数据库插入时返回主键】 

    推荐阅读