Mybatis批量插入或更新使用MERGE INTO - weixin_40333020的博客 - CSDN博客

     MERGE INTO employee A1         USING         (            <foreach close="" collection="list" index="index" item="item" open="" separator="union"              select  {item.id} id,{item.n...
阅读全文

springboot mybatis merge into 用法 - 一只小棉花的博客 - CSDN博客

例子:```<update id="insert" parameterType="...实体" merge into 表名 a using (select 1 from dual) on (a.字段1 = {参数} and a.字段2 = {参数2}) when not matched then insert (字段1,字段2,字段3) ...
阅读全文

MyBatis报错:Could not set parameters for mapping: ParameterMapping{property='categoryName', mode=IN, j - 一个90后PHP程序员的个人博客网站

刚开始学习mybatis在update时一直报以下错误org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='cat...
阅读全文

Java 8 forEach examples – Mkyong.com

In this article, we will show you how to loop a `List` and a `Map` with the new Java 8 `forEach` statement.1\. forEach and Map1.1 Normal way to loop a Map.```java Map<String, Integer items = n...
阅读全文

ArrayList中的forEach 方法(java8) - kuam的博客 - CSDN博客

今天在看Arraylist原码的时候看到如下代码```java @Override public void forEach(Consumer<? super E action) { Objects.requireNonNull(action); final int expectedModCount = modCount; @Suppre...
阅读全文

java list 转树 tree 的三种写法 - jcroad的博客 - CSDN博客

List对象数组转为tree代码是自己写的,今天学习来的。下一步,写成工具类。pom里面加上:阿里的fastjson```<! https://mvnrepository.com/artifact/net.sf.jsonlib/jsonlib <dependency <groupIdnet.sf.jsonlib</groupId <artifactIdjsonlib</artif...
阅读全文

springboot启动时执行任务CommandLineRunner - JustTheWayIAm - 博客园

\ SpringBoot中CommandLineRunner的作用 \ 平常开发中有可能需要实现在项目启动后执行的功能,SpringBoot提供的一种简单的实现方案就是添加一个model并实现CommandLineRunner接口,实现功能的代码放在实现的run方法中 \ 简单例子 ``` java package org.springboot.sample.runner; i...
阅读全文

一个员工的离职成本到底有多恐怖! - 芋道源码

点击上方“芋道源码”,选择“”做积极的人,而不是积极废人!源码精品专栏  来源:http://rrd.me/ekcBt 1、入职2周离职 2、入职3个月离职 3、入职6个月离...
阅读全文

Starting nginx: nginx: [warn] "ssl_stapling" ignored, issuer certificate not found

Starting nginx: nginx: [warn] "ssl_stapling" ignored, issuer certificate not found
阅读全文

「DISTINCT 识别不了这个关键字」this is incompatible with DISTINCT 之Mysql报错问题 - 无名 - CSDN博客 龙美珍

版权协议,转载请附上原文出处链接和本声明。本文链接:mysql经常使用关键字,5.7以前的版本能正常使用,但是之后版本遇到这样的错误: Caused by: java.sql.SQLException: Expression 1 of ORDER BY clause is not in SELECT list, references column ‘xxxxxxxxxxxxxxx’ ...
阅读全文