摘要: 数据库设计 message表 message_inbox表 junit单元测试 package com.alphajuns.junit; import com.alphajuns.ssm.service.MessageService; import org.junit.Test; import or 阅读全文
posted @ 2020-06-24 16:19 AlphaJunS 阅读(1794) 评论(0) 推荐(0)
摘要: 数据库主键设置为自增,mybatis的insert语句SelectKey返回值一直为0,原因在于order的问题,MySQL设置了自动增长,order属性为after才能返回正确值,Oracle取序列,order属性需要设置为before 数据库自增主键 mybatis insert语句得Selec 阅读全文
posted @ 2020-06-24 15:54 AlphaJunS 阅读(1224) 评论(0) 推荐(0)