07 2019 档案

摘要:RabbitMQ应用 引入依赖 阅读全文
posted @ 2019-07-30 16:21 雷神约 阅读(128) 评论(0) 推荐(0)
摘要:Nginx 真实的配置 ··· proxy_pass http://127.0.0.1:8008/; proxy_set_header Host $host; proxy_set_header X Real IP $remote_addr; proxy_set_header X Forwarded 阅读全文
posted @ 2019-07-29 09:29 雷神约 阅读(130) 评论(0) 推荐(0)
摘要:Druid连接池监控配置 1) 引入依赖 2) 添加配置项 3) 加入java 配置来读取Druid配置 4) 测试数据源 5) 浏览器查看监控 阅读全文
posted @ 2019-07-26 13:35 雷神约 阅读(140) 评论(0) 推荐(0)
摘要:spring: ##数据库连接信息 datasource: url: jdbc:mysql://localhost:3306/test username: root password: root driver-class-name: com.mysql.jdbc.Driver ########### 阅读全文
posted @ 2019-07-26 11:29 雷神约 阅读(246) 评论(0) 推荐(0)
摘要:import os,retop = os.popen("tasklist")process_list = []split_r = r"\s+"memory_topTen = []for key,item in enumerate(top): item = str(item).rstrip("\n") 阅读全文
posted @ 2019-07-25 09:48 雷神约 阅读(7026) 评论(0) 推荐(0)
摘要:let books = [ 0, {bookName:"python",price:10,count:1}, {bookName:"Ruby",count:2,price:20}, {bookName:"Java",count:4,price:30}, {bookName:"php",count:2 阅读全文
posted @ 2019-07-23 15:03 雷神约 阅读(167) 评论(0) 推荐(0)
摘要:java8-Stream集合操作快速上手 目录 Stream简介 为什么要使用Stream 实例数据源 Filter Map FlatMap Reduce Collect Optional 并发 调试 Stream简介 Java 8引入了全新的Stream API。这里的Stream和I/O流不同, 阅读全文
posted @ 2019-07-23 14:30 雷神约 阅读(303) 评论(0) 推荐(0)
摘要:加这两行就可以返回这个插入对象的自增的主键<insert id="insertSeatPortraitData" parameterType="seatPortrait" keyProperty="id" useGeneratedKeys="true"> insert into seating_po 阅读全文
posted @ 2019-07-15 13:55 雷神约 阅读(560) 评论(0) 推荐(0)
摘要:使用Docker快速搭建Kafka开发环境 表现力 关注 0.5 2018.05.04 03:00* 字数 740 阅读 25240评论 1喜欢 11 表现力 关注 0.5 2018.05.04 03:00* 字数 740 阅读 25240评论 1喜欢 11 0.5 2018.05.04 03:00 阅读全文
posted @ 2019-07-15 11:07 雷神约 阅读(1159) 评论(0) 推荐(0)
摘要:https://github.com/happyfish100/fastdfs/wiki 阅读全文
posted @ 2019-07-12 13:33 雷神约 阅读(163) 评论(0) 推荐(0)
摘要:/** * 发送消息 * @param user */@RequestMapping(value = prefix+"/setRabbitMessage", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8 阅读全文
posted @ 2019-07-12 10:28 雷神约 阅读(319) 评论(0) 推荐(0)
摘要:package com.jd.ng.shiro.config.rabbitMQconfig;import com.jd.ng.shiro.rabbitMqListener.SimpleMessageListener;import org.springframework.amqp.core.*;imp 阅读全文
posted @ 2019-07-12 10:02 雷神约 阅读(497) 评论(0) 推荐(0)
摘要:package com.lgmall.search;import com.lgmall.search.esEntity.Article;import com.lgmall.search.esEntity.Movie;import io.searchbox.client.JestClient;impo 阅读全文
posted @ 2019-07-08 16:38 雷神约 阅读(630) 评论(0) 推荐(0)
摘要:Products Cloud Services Customers Learn downloads Products Cloud Services Customers Learn downloads Products Cloud Services Customers Learn downloads 阅读全文
posted @ 2019-07-03 10:11 雷神约 阅读(448) 评论(0) 推荐(0)
摘要:elasticsearch启动常见错误 问题出现环境,OS版本:CentOS-7-x86_64-Minimal-1708;ES版本:elasticsearch-6.2.2。 1、max file descriptors [4096] for elasticsearch process is too 阅读全文
posted @ 2019-07-03 10:03 雷神约 阅读(308) 评论(0) 推荐(0)
摘要:useradd和adduser的区别 添加用户:useradd -m 用户名 然后设置密码 passwd 用户名 删除用户:userdel -r 用户名 1. 在root权限下,useradd只是创建了一个用户名,如 (useradd +用户名 ),它并没有在/home目录下创建同名文件夹,也没有创 阅读全文
posted @ 2019-07-02 09:40 雷神约 阅读(673) 评论(0) 推荐(0)
摘要:package com.jd.ng.shiro.controller;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.beans.factory.annotation.Autowire 阅读全文
posted @ 2019-07-01 10:34 雷神约 阅读(610) 评论(0) 推荐(0)