使用mybatis传入参数, 当参数类型是String ,Integer 等这些时。如果用他的<if test="year != null and year != ''">标签判断该参数是否为空,通常会爆There is no getter for property named ‘year’ in ...
分类:
编程语言 时间:
2020-07-10 11:48:18
阅读次数:
80
mybatis-plus update 版本:3.0+ 根据id更新 User user = new User(); user.setUserId(1); user.setAge(29); user.updateById(); or Integer rows = userMapper.updateB ...
分类:
其他好文 时间:
2020-07-10 11:39:57
阅读次数:
559
Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a. If there is no answer or the answer i ...
分类:
其他好文 时间:
2020-07-10 09:57:57
阅读次数:
79
前言发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了一套Java面试题,希望对大家有帮助哈~打算这几天每天更新15~20题。(这样有助于你们阅读和理解!)我们先从简单的开始1.JDK和JRE有什么区别?JDK:JavaDevelopmentKit的简称,java开发工具包,提供了java的开发环境和运行环境。JRE:JavaRuntimeEnvironment的简称,java运
分类:
编程语言 时间:
2020-07-10 09:37:49
阅读次数:
57
synchronized 注意事项:1、synchronized (Object ) --不能使用 String常量 Integer long 2 线程同步 -synchronize 锁的是对象不是代码 this XX.classs 加锁的方法跟不加锁的方法可以同时运行 互不干扰 锁升级 --1. ...
分类:
其他好文 时间:
2020-07-10 00:03:54
阅读次数:
70
一、modify easy-mock-->/api/gathering/search/{page}/{size} { "flag": true, "code": 20000, "message": "@string", "data": { "total": "@integer(60, 100)", ...
分类:
其他好文 时间:
2020-07-09 22:05:02
阅读次数:
61
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ ...
分类:
其他好文 时间:
2020-07-09 20:53:22
阅读次数:
74
在原有重量基础上增加一种重量的砝码,依次使用0,..., m【i】个,得到新的重量,将这些重量添加到集合中,继续重复。 import java.util.*; public class Main { static int solution(int n, int[] m, int[] x){ Set< ...
分类:
其他好文 时间:
2020-07-09 19:21:46
阅读次数:
52
大水题来啦! 不过要注意A B都为零的情况,所以用do-while循环 C++ 1 #include<iostream> 2 #include<string> 3 #include<algorithm> 4 5 using namespace std; 6 7 int main() { 8 int ...
分类:
编程语言 时间:
2020-07-09 00:58:34
阅读次数:
73
mybatis之注解实现CRUD功能 步骤: 1、根据表创建pojo类 @Data @AllArgsConstructor @NoArgsConstructor public class User { private int uid; private String uname; private St ...
分类:
其他好文 时间:
2020-07-08 19:45:20
阅读次数:
54