在查阅测试环境业务日志中的ERROR级别的日志时,发现了有 org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but f ...
分类:
Web程序 时间:
2018-10-04 23:03:07
阅读次数:
446
springboot_data_access_demo基于rapid,根据自定义模版生成的基于mybatis+mysql的数据库访问示例项目。简单配置数据库信息,配置不同的生成策略生成可以直接运行访问数据库的项目,吸取了mybatis generator的动态条件优势,同时又稍有扩展。可以生成简单易 ...
分类:
编程语言 时间:
2018-10-04 15:20:38
阅读次数:
164
import java.util.Date; import java.util.List; public class PageVo { private Integer code = 200; //接口状态码 // 当前页 private Integer currentPage = 1; // 每页显... ...
分类:
其他好文 时间:
2018-10-04 14:57:05
阅读次数:
237
A - A CodeForces - 1042A There are nn benches in the Berland Central park. It is known that aiai people are currently sitting on the ii-th bench. Anot ...
分类:
其他好文 时间:
2018-10-04 10:44:19
阅读次数:
118
1. 需要添加的依赖 2. yml文件添加如下配置: 3. 实体类 4. 启动spring boot 项目,即可生成对应的数据库表 ...
分类:
数据库 时间:
2018-09-30 16:53:30
阅读次数:
167
批量插入,主键冲突就更新 自增主键插入 <!-- 分页查询数据头文件 把头和尾加到正常sql语句上--><sql id="queryHeader"> select * from (</sql><!-- 分页查询数据尾文件 --><sql id="queryFooter"> <![CDATA[) in ...
分类:
其他好文 时间:
2018-09-30 15:04:08
阅读次数:
196
1.Pom.xml配置 语法顺序 2.mybatis中找不到配置的xml文件 "https://blog.csdn.net/u010648555/article/details/70880425" "https://blog.csdn.net/qq_23184291/article/details/ ...
分类:
其他好文 时间:
2018-09-29 23:52:49
阅读次数:
372
本文的代码是在MyBatis(1)-简单入门基础之上进行学习的,如有不懂请先看此博文MyBatis(1)-简单入门! 1)配置文件的安装 >在联网的情况下,点击去下载http://mybatis.org/dtd/mybatis-3-config.dtd >未联网:去mybatis的jar包->org ...
分类:
其他好文 时间:
2018-09-29 00:06:35
阅读次数:
183
返回IP地址 curl ip.6655.com/ip.aspx curl whatismyip.akamai.com wget -qO - ifconfig.co curl icanhazip.com dig +short myip.opendns.com @resolver1.opendns.co... ...
分类:
其他好文 时间:
2018-09-28 19:16:55
阅读次数:
217
spring+springMVC+mybatis,spring进行对象的管理,springMVC分离出各层、使前后端分离,mybatis是持久层框架,是对jdbc的封装,使我们更加容易的对数据库进行操作。 目前企业的 Java 应用中, Spring 框架是必须的, Spring 的核心是 IoC ...
分类:
其他好文 时间:
2018-09-28 17:40:24
阅读次数:
251