
开发杂记
adminit
不要怂,就是干
展开
-
springboot 2.x整合rabbitmq之使用自定义Listener
1、在pom.xml中引入相关依赖<?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:schemaLocation...原创 2019-03-30 14:54:17 · 2350 阅读 · 0 评论 -
mybatis之使用foreach来进行批量插入数据
1、数据库为MySQL的情况下的sql语句为:<insert id="insertAll" parameterType="com.scau.mybatis.entity.Sale"> insert into t_sale values <foreach collection="saleList" item="sale" separator=","> ...原创 2019-03-30 15:34:59 · 1325 阅读 · 0 评论