- 博客(10)
- 收藏
- 关注
转载 mybatis 中 foreach collection的三种用法
转载:http://blog.sina.com.cn/s/blog_b0d90e8c0102v1q1.html 传参参考:http://www.cnblogs.com/ruiati/p/6410339.html foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,separator,c...
2019-07-12 14:49:57
186
原创 git基本操作
1.初始化 git init 2.创建.gitignore touch .gitignore 3.查看状态 git status 4.添加到暂存区 git add . 添加全部文件 git add 单个文件 5.git reset HEAD 命令用于取消已缓存的内容 git reset HEAD 文件名 6.使用 git add 添加暂存区,git commit 将缓存区内容...
2019-06-19 23:37:05
174
转载 IDEA构建maven项目生成的文件详解 (.mvn、mvnw、mvnw.cmd、.gitignore、.iml、.idea、pom.xml)
IDEA构建的maven+springBoot项目结构如下: 1. .gitignore:分布式版本控制系统git的配置文件,意思为忽略提交 在 .gitingore 文件中,遵循相应的语法,即在每一行指定一个忽略规则。 如:.log、/target/、.idea 2. mvnw:全名是maven wrapper的文件 它的作用是在maven-wrapper.properties文件中记录你要使...
2019-06-17 11:13:13
3618
原创 ActiveMQ-toptic主题模式
1.消费者 package com.touch.theme; import cn.hutool.core.util.RandomUtil; import com.touch.utils.ActiveMQUtil; import org.apache.activemq.ActiveMQConnectionFactory; import javax.jms.*; import java.util.Da...
2019-06-11 15:48:30
780
原创 ActiveMQ-queue队列模式
1.消费者 package com.touch.queue; import cn.hutool.core.util.RandomUtil; import com.touch.utils.ActiveMQUtil; import org.apache.activemq.ActiveMQConnectionFactory; import javax.jms.*; import java.util.Da...
2019-06-11 15:44:45
312
原创 RabbitMQ-direct模式
与 ActiveMQ 拿到消息就直接放在队列等待消费者拿走不同, Rabbit 拿到消息之后,会先交给 交换机 (Exchange), 然后交换机再根据预先设定的不同绑定( Bindings )策略,来确定要发给哪个队列。 RabbitMQ提供了四种Exchange模式:fanout,direct,topic,header
2019-06-11 15:16:57
328
原创 RabbitMQ-topic模式
1.消费者 package com.touch.topic; import com.rabbitmq.client.*; import com.touch.utils.RabbitMQUtil; import java.io.IOException; import java.util.concurrent.TimeoutException; /** * 专门用于接受 *.news 消息 */ ...
2019-06-11 15:16:33
480
原创 RabbitMQ-fanout模式
1.消费者 package com.touch.fanout; import cn.hutool.core.util.RandomUtil; import com.rabbitmq.client.*; import com.touch.utils.RabbitMQUtil; import java.io.IOException; import java.util.Date; import java...
2019-06-11 15:15:56
602
原创 字节流复制文件(文本,图片,音乐等)
/** * 字节流读写复制文件 * @param src * @param out */ public static void FileInputStreamFileOutputStream(String src,String out){ FileInputStream fileInputStream = null;
2017-07-30 16:39:43
304
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅