【MapSheep】
[好记性不如烂笔头]
posts - 228,comments - 15,views - 17万
03 2021 档案
MyBatis中@Select、@Update注解的使用
摘要:MyBatis中@Select、@Update注解的使用 请求地址和两种接受值的方式 请求地址 http://localhost:8888/Company/findEmpNo?str=2 两种接受值的方式 第一种 定义: (@Param("empNo") String empNo); 接收: sel 阅读全文
posted @ 2021-03-25 14:21 (Play) 阅读(1404) 评论(0) 推荐(0) 编辑
RabbitMQ启动报【=SUPERVISOR REPORT==== 23-Mar-2021::15:21:27.703000 ===】
摘要:RabbitMQ启动报错 日志 =SUPERVISOR REPORT 23-Mar-2021::15:21:27.703000 supervisor: {local,'Elixir.Logger.Supervisor'} errorContext: start_error reason: nopro 阅读全文
posted @ 2021-03-23 17:09 (Play) 阅读(1141) 评论(0) 推荐(0) 编辑
JavaSE知识点总结
摘要:0.代码展示 // 1. 把数组中的字段变成字符串,并且循环展示 // 输出:[1, 2, 4, 545, 11, 32, 13131, 4444] int[] ints = {1, 2, 4, 545, 11, 32, 13131, 4444}; //定义数组 int[] code = new i 阅读全文
posted @ 2021-03-21 20:41 (Play) 阅读(29) 评论(0) 推荐(0) 编辑
Redis的五大数据类型特性及应用场景
摘要:Redis的五大数据类型 一个key对应一个value: String 字符串 String是redis最基本的类型,一个key对应一个value; String类型是二进制安全的,意思是redis的string可以包含任何数据: 比如:jpg图片或者序列化的对象; 一个redis中的字符串valu 阅读全文
posted @ 2021-03-12 17:17 (Play) 阅读(226) 评论(0) 推荐(0) 编辑
Centos7更换阿里源
摘要:更换源之前,请确保Centos7 已经连上网 cd /etc cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.back #建议备份或者改名 wget -O CentOS-Base.repo http://mirrors.aliyun 阅读全文
posted @ 2021-03-12 15:58 (Play) 阅读(177) 评论(0) 推荐(0) 编辑
Run "yum repolist all" to see the repos you have.
摘要:Centos7执行 yum -y install wget [root@localhost yum.repos.d]# yum -y install wget 已加载插件:fastestmirror There are no enabled repos. Run "yum repolist all" 阅读全文
posted @ 2021-03-12 14:38 (Play) 阅读(1581) 评论(0) 推荐(0) 编辑
MySQL相关知识
摘要:主外键标识 如果键是PRI,则列是主键或多列主键中的列之一。 如果键是UNI,则该列是唯一索引的第一列。 如果键为MUL,则该列是非唯一索引的第一列,其中允许在列中多次出现给定值。 MySQL的三大范式 要求具有原子性、字段不可在被分割。 必须满足第一范式的前提下,除了主键外,其它的字段都必须完全依 阅读全文
posted @ 2021-03-11 14:27 (Play) 阅读(47) 评论(0) 推荐(0) 编辑
mybatis foreach item与index
摘要:mybatis foreach item与index 注意: index的确是从0开始的 index和item的区别 index代表每次循环的次数, 相当于for循环中的 i item代表每次循环的变量值, 相当于for循环中的 varList.get(i) 代码示例仅供参考【入参: [{"dept 阅读全文
posted @ 2021-03-09 10:47 (Play) 阅读(4039) 评论(0) 推荐(3) 编辑
Java后端接收Get、Post方式传值
摘要:Get方式传递数组与集合, Java后端接收 Get方式传递 /** * @param Integer[] ids or List<Integer> list * @author code.Map * @version 创建时间:2021年3月9日 下午10:02:24 * 请求地址: http:/ 阅读全文
posted @ 2021-03-09 10:45 (Play) 阅读(2208) 评论(0) 推荐(0) 编辑
Controller报错: java.lang.NoSuchMethodException: java.util.List.<init>()
摘要:报错原因: 对象在初始化时没有找到对应的构造方法, 从而导致对象初始化失败。 解决方法: 提供相应的构造方法即可, 如示例接口, 有两种处理方法。 方法一, 参数前加@RequestParam @GetMapping("sample") public void sample(@RequestPara 阅读全文
posted @ 2021-03-09 10:43 (Play) 阅读(259) 评论(0) 推荐(0) 编辑
【Mybatis】Mybatis一对多、多对一
摘要:Mybatis多对一【association】 多对一 /** * 添加部门实体字段 * 第一步:多方添加一方的实体类:com/hxh/basic/project/vo/UserVo.java:18 */ private GradeVo gradeVo; /*第二步:在一方Mapper中添加根据编号 阅读全文
posted @ 2021-03-09 09:42 (Play) 阅读(123) 评论(0) 推荐(0) 编辑
Dependencies - [依赖], Libraries - [库]
摘要:Dependencies - [依赖], Libraries - [库] IDEA中库和依赖的关系。 01 02 阅读全文
posted @ 2021-03-05 17:22 (Play) 阅读(118) 评论(0) 推荐(0) 编辑
MySQL中关于useSSL的警告问题【解决方案】
摘要:问题描述 问题描述:web开发中,在使用MySQL数据库时,有时候会遇到下面这样的警告描述,原因是当前版本的MySQL需要指明是否进行SSL连接。 警告提示:WARN: Establishing SSL connection without server's identity verificatio 阅读全文
posted @ 2021-03-04 16:52 (Play) 阅读(1250) 评论(0) 推荐(0) 编辑
Git常用命令
摘要:常用命令 001 查看为提交的 git status 添加单个文件到暂存区 git add 路径 提交所有的 git add . 查看提交本地的日志 git log 附加命令 git branch -av 查看所有的分支 *代表正在使用的分支 HEAD → codemap[查看正在使用的分支] gi 阅读全文
posted @ 2021-03-04 16:17 (Play) 阅读(51) 评论(0) 推荐(0) 编辑
Java过滤接口返回结果中值为null的字段
摘要:方法一 使用JDK中Annotation注解包 // 作用在实体类上 @JsonInclude(JsonInclude.Include.NON_NULL) 方法二 添加Hutool工具包依赖 <!--hutool工具类--> <dependency> <groupId>cn.hutool</grou 阅读全文
posted @ 2021-03-03 09:19 (Play) 阅读(607) 评论(0) 推荐(0) 编辑
select * from ${tableName}
摘要:创建父实体类 package com.example.demo.pojo; public class BaseCompanyDto { // 表名 private String tableName; // 关联的表名 private String partTableName; } 普通实体类继承 p 阅读全文
posted @ 2021-03-02 17:32 (Play) 阅读(731) 评论(0) 推荐(0) 编辑
点击添加文本框
摘要:示例代码 如下 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>two</title> <script> console.group("one pass"); function funIDcard(){ va 阅读全文
posted @ 2021-03-01 17:22 (Play) 阅读(97) 评论(0) 推荐(0) 编辑
杀死Windows进程【完美解决方案】
摘要:Tomcat启动监听器被其他程序占用 示例 错误启动TOMCAT时: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: 阅读全文
posted @ 2021-03-01 15:19 (Play) 阅读(1356) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示