策略模式(Strategy Pattern): 定义一系列的算法,把它们一个个封装起来,并且使他们可相互替换。本模式使得算法的变化可以独立于使用它的客户。(Define a family of algorithms,encapsulate each one and make them interchangeable.Strategy lets the algorithmvary indepen...
今天的想法是,要在插入数据库时,如果有某某一个主要字段的值重复,则不插入,否则则插入! 看了一下Plus是有这个saveOrUpdate 方法!原本使用save时是没有问题了,改成saveOrUpdate 用了一下就报错了。com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: can not exec...
最新评论