![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java特别记录
杨咩咩yang
.
展开
-
Integer内置与“ == ”使用注意事项
Integer a = 100, b = 100;Integer c = 1000, d= 1000;System.out.println(a == b);//为trueSystem.out.println(c == d);//为falseInteger.java类,有一个内部私有类IntegerCache.java.它缓存了 -128~127 之间所有的整数对象。注意...原创 2019-07-13 11:47:12 · 137 阅读 · 0 评论 -
Mybatis环境搭建
1.创建maven工程并导入坐标<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema...原创 2019-07-16 23:56:55 · 102 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: Cannot find class: BaseResultMap
将resultType改为resultMap修改前: <select id="getProductList" resultType="BaseResultMap"> SELECT * FROM product </select>修改后: <select id="getProductList" resultMap=...原创 2019-07-17 13:49:13 · 3056 阅读 · 0 评论