码迷,mamicode.com
首页 >  
搜索关键字:integer to roman    ( 15811个结果
SpringBoot整合Mbatis
bean 文件: public class Employee { private Integer id; private String lastName; private Integer gender; private String email; private Integer dId; } pub ...
分类:编程语言   时间:2020-02-14 22:37:55    阅读次数:186
CCF 201312-1 出现次数最多的数Java
TreeMap中的元素默认按照keys的自然排序排列。(对Integer来说,其自然排序就是数字的升序;对String来说,其自然排序就是按照字母表排序) 由于Map中存放的元素均为键值对,故每一个键值对必然存在一个映射关系。 Map中采用Entry内部类来表示一个映射项,映射项包含Key和Valu ...
分类:编程语言   时间:2020-02-14 22:13:16    阅读次数:104
resultType和resultMap区别,对一个数据库查询方法的分析
先看一段mybatis的代码 <resultMap id="BaseResultMap" type="com.example.tsfunproj.entity.BaseDataMap"> <id column="id" property="id" jdbcType="INTEGER"/> <resu ...
分类:数据库   时间:2020-02-14 11:07:21    阅读次数:103
Spring Boot FAQ
Swagger 相关 控制台warn提示 Illegal DefaultValue null for parameter type integer java 出现这个问题主要是使用了 注解修饰了非String类型的变量,而此时, 未赋值造成。 上面这种写法就不会报警告了。 除了上面这种方式,还可以使 ...
分类:编程语言   时间:2020-02-14 01:04:56    阅读次数:119
No enum constant org.apache.ibatis.type.JdbcType.Integer 【找不到这个枚举类,mybatis相关】
同事今天在用mybatis查询时候,报了上面这个问题。上网查了下,原来是mybatis封装类型的问题。原因是在resultMap中jdbcType写为了Integer,但是在MyBatis中没有这个数据类型 来查看了原码,发现MyBatis的jdbcType是一个枚举类,有以下类型: public ...
分类:数据库   时间:2020-02-13 23:12:46    阅读次数:99
面试题09. 用两个栈实现队列
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
[LC] 373. Find K Pairs with Smallest Sums
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合并两个有序数组【Python】
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
list的泛型
更新记录 【1】2020.02.12 21:26 1.完善内容 正文 在学习list集合时,我看到书上写list的格式时 并且注明:E代表Java的泛型 作为一个还没学习泛型的小白,自然不知道啥是泛型 没事,书上说:例如:集合中的元素为字符串类型,那么E可以修改为String 那么,就很明白了(其实 ...
分类:其他好文   时间:2020-02-12 22:31:19    阅读次数:103
leetcode 1342. Number of Steps to Reduce a Number to Zero
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!