- 博客(3)
- 收藏
- 关注
原创 mybatis example and 和or 混合使用
背景:三个搜索条件,其中两个条件和sql里面的字段一一对应,另外一个字段和sql里面的两个字段对应,且是模糊查询,sql示意如下:select * from user where age = 20 and height = 1.8 and (name like concat(’%’,‘小’, ‘%’) or phone likeconcat(’%’,‘小’, ‘%’)) order by id;自己写sql很简单,用mybatis自己生成的example实现示意如下:ScanExample ex
2020-10-13 18:59:47 1670 1
原创 HV000030: No validator could be found for constraint ‘javax.validation.constraints.Size‘ validating
HV000030: No validator could be found for constraint ‘javax.validation.constraints.Size’ validating type ‘java.lang.Integer’在做参数效验时,报上面的错误/** * 情感和社会评价星数 */@Size(min = 1, max = 5, message = "情感和社会评价的星数得控制在1-5颗星之内")private Integer emotionPoint;原因:![
2020-10-09 20:43:16 581
原创 程序包com.sun.istack.internal不存在
程序包com.sun.istack.internal不存在形成原因:是因为代码里使用了 sun 私有包中 @NotNull注解导致,只要引入相应的sun私有包就行了!解决方案:在pom.xml之间添加org.apache.maven.pluginsmaven-compiler-plugin3.5.1-Xlint:deprecationKaTeX parse error: Undefined control sequence: \lib at position 12: {
2020-05-21 11:16:34 6194 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人