Swagger 相关 控制台warn提示 Illegal DefaultValue null for parameter type integer java 出现这个问题主要是使用了 注解修饰了非String类型的变量,而此时, 未赋值造成。 上面这种写法就不会报警告了。 除了上面这种方式,还可以使 ...
分类:
编程语言 时间:
2020-02-14 01:04:56
阅读次数:
119
同事今天在用mybatis查询时候,报了上面这个问题。上网查了下,原来是mybatis封装类型的问题。原因是在resultMap中jdbcType写为了Integer,但是在MyBatis中没有这个数据类型 来查看了原码,发现MyBatis的jdbcType是一个枚举类,有以下类型: public ...
分类:
数据库 时间:
2020-02-13 23:12:46
阅读次数:
99
class CQueue { private Stack<Integer> stack1; private Stack<Integer> stack2; public CQueue() { this.stack1 = new Stack<>(); this.stack2 = new Stack<>( ...
分类:
其他好文 时间:
2020-02-13 21:17:39
阅读次数:
83
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:
其他好文 时间:
2020-02-13 13:22:48
阅读次数:
67
LeetCode 0088. Merge Sorted Array合并两个有序数组【Easy】【Python】【双指针】 题目 "英文题目链接" Given two sorted integer arrays nums1 and nums2 , merge nums2 into nums1 as o ...
分类:
编程语言 时间:
2020-02-12 23:50:19
阅读次数:
89
更新记录 【1】2020.02.12 21:26 1.完善内容 正文 在学习list集合时,我看到书上写list的格式时 并且注明:E代表Java的泛型 作为一个还没学习泛型的小白,自然不知道啥是泛型 没事,书上说:例如:集合中的元素为字符串类型,那么E可以修改为String 那么,就很明白了(其实 ...
分类:
其他好文 时间:
2020-02-12 22:31:19
阅读次数:
103
Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, otherwis ...
分类:
其他好文 时间:
2020-02-12 18:20:39
阅读次数:
64
1.自动装箱 ArrayList<Integer> list = new ArrayLlist<Integer>(); list.add(2); 自动变换为 list.addInteget.valueOf(2); 这种变换称为自动装箱。 2.自动拆箱 int n = list.get(i); 以上语 ...
分类:
其他好文 时间:
2020-02-12 13:14:39
阅读次数:
55
1 """ 2 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 3 Exa ...
分类:
其他好文 时间:
2020-02-12 00:58:45
阅读次数:
82
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2020-02-11 19:20:25
阅读次数:
64