![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
文章平均质量分 60
xgjj68163
java 开发
展开
-
redis stream restTemplate消息监听队列框架搭建
2. 消息监听器,实现StreamListener接口,处理消息到达逻辑;3. 将消息订阅bean及监听器注册到配置中;1. pom增加redis依赖;4.2 消息监听器监听消息到达 代码见第二节。3. redis订阅bean及监听器注册。4. 测试生产消息 消息监听成功。2. 消息监听器实现代码。原创 2024-01-11 14:45:05 · 923 阅读 · 0 评论 -
SSE server send event 与 EventSource使用,实现服务器端消息推送
Server Send Event 是服务器主动向客户端推送消息的一种技术。消息类型为“text/event-stream”。chrome edge浏览器支持。原创 2023-02-16 09:24:33 · 1293 阅读 · 0 评论 -
ip白名单
三方接口,不想通过鉴权的方式,减少复杂度,可以通过配置ip白名单的方式保证接口安全。拦截请求,过滤ip,放行原创 2022-07-06 16:48:14 · 849 阅读 · 0 评论 -
minio mp4文件上传后下载-文件损坏-已解决
图标显示为未知图标上网搜索发现是合并文件时,user meta data需要传递文件类型String filetype = FilenameUtils.getExtension(objectName);String fileContentType = null;if (filetype.equals("mp4")) { fileContentType = "video/mp4";}Map<String, String> headerMap = new HashMap原创 2022-03-19 14:49:38 · 4760 阅读 · 2 评论 -
docker搭建mongodb集群
1. 从Docker Hub上拉取MongoDB镜像docker pull mongo:4.0.02.Docker网络配置为MongoDB集群创建独立的docker网桥docker network create --subnet=10.1.1.0/24 mongodbnet3.准备MongoDB集群配置文件Config-Server 配置文件 路径:/configsvr/mongod.conf 说明:MongoDB v3.4 之后要求Config-Server也需...原创 2021-11-04 14:39:42 · 2596 阅读 · 1 评论 -
logback配置学习
1.默认查找目录默认会找项目classes目录下的logback.xml,logback-test.xml,logback-spring.xml2. logback.xml结构<configuration scan="" scanPeriod="" debug=""><contextName>logback</contextName><property name="" value=""></property><a...原创 2021-11-04 10:55:56 · 476 阅读 · 0 评论 -
elasticsearch + mongodb 搭建检索系统
搭建ElasticSearch+MongoDB检索系统 - JamesPei - 博客园 (cnblogs.com)原创 2021-10-26 17:21:16 · 437 阅读 · 0 评论 -
ElasticSearch详细介绍
https://www.cnblogs.com/wangchuanfu/p/11558034.html转载 2021-09-09 15:08:37 · 57 阅读 · 0 评论 -
springboot 整合aop
https://blog.csdn.net/lmb55/article/details/82470388/原创 2021-04-08 17:56:18 · 65 阅读 · 0 评论 -
jpa框架
https://www.jianshu.com/p/2b68af9aa0f5/转载 2021-03-30 10:09:35 · 5224 阅读 · 0 评论 -
mybatis关联查询及多参数传值
https://blog.csdn.net/qq_39778516/article/details/84191429https://blog.csdn.net/qq_39778516/article/details/84191429mybatis中的关联查询(尊重劳动成果,转载请注明出处:https://blog.csdn.net/qq_39778516/article/details/...转载 2020-05-07 10:06:30 · 1763 阅读 · 0 评论 -
redis安装
https://www.jianshu.com/p/564b0c1ccf53转载 2020-04-09 14:34:59 · 129 阅读 · 0 评论 -
java 实现kafka消息监听
kafka消息实现原创 2019-12-05 14:29:36 · 1445 阅读 · 1 评论 -
搭建单个kafka broker
1.下载解压kafka2.12-2.3.1,放到/usr/local/目录下2.进入config目录,修改zookeeper配置文件[root@localhost config]# pwd/usr/local/kafka_2.12-2.3.1-0/config[root@localhost config]#[root@localhost config]# cat zookeeper...原创 2019-12-04 15:25:07 · 719 阅读 · 0 评论 -
spring boot 外部依赖包 打包
<build> <finalName>mis_baoxiao_service</finalName> <resources> <resource> <directory>${project.basedir}/src/main/resources/lib</directory> <...原创 2019-11-01 11:45:40 · 340 阅读 · 0 评论 -
spring AOP 日志配置
1.通知import org.aopalliance.intercept.MethodInterceptor;import org.aopalliance.intercept.MethodInvocation;import org.apache.log4j.Level;import org.apache.log4j.Logger;import org.apache.log4j.Prope...原创 2016-07-13 10:12:33 · 304 阅读 · 0 评论 -
spring 整合hiberante
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">classpath:/com/common/file/ com.dayang.common.basic.MisMySQLDialectfalseclass="org.springframew原创 2018-02-01 09:42:53 · 166 阅读 · 0 评论 -
mybatis自动生成mapper文件
1.pom的plugins里配置:<plugin><groupId>org.mybatis.generator</groupId><artifactId>mybatis-generator-maven-plugin</artifactId><version>1.3.2</version><原创 2018-07-04 10:06:22 · 998 阅读 · 0 评论 -
java IO框架
https://blog.csdn.net/github_38841849/article/details/79686757https://blog.csdn.net/qq_27093465/article/details/53233273转载 2018-09-25 14:07:39 · 342 阅读 · 0 评论 -
日志-log4j详细配置
https://www.cnblogs.com/ITtangtang/p/3926665.html转载 2018-12-10 12:59:17 · 177 阅读 · 0 评论 -
cas5.2.6 搭建cas服务端
1.打包cas服务器端war包下载cas-overlay-template-5.2.zip1.1配置pom.xml<dependencies> <dependency> <groupId>org.apereo.cas</groupId> <artifactId&g...原创 2018-12-28 09:15:43 · 1241 阅读 · 0 评论 -
rabbitmq windows 搭建 使用
搭建:https://blog.csdn.net/liangwenmail/article/details/60870541https://blog.csdn.net/qq_23303245/article/details/80406382https://blog.csdn.net/u012637358/article/details/80078610安装完成后打不开管理页面:...转载 2019-03-13 16:36:52 · 127 阅读 · 0 评论 -
springboot spring
1.简化了spring配置,注解方式,好维护;2.自身封装了运行环境,直接打成jar包运行;只需要通过java –jar 的方式即可启动应用程序;可以通过配置插件,为springboot提供不同类型的容器3.有自己的starter,简化maven依赖;起步依赖:向项目中添加依赖是件富有挑战的事。你需要什么库?它的Group和Artifact是什么?你需要哪个版本?哪个版本不会和项目中的...转载 2018-07-16 10:20:47 · 156 阅读 · 0 评论 -
POI插件
https://blog.csdn.net/qq_38464466/article/details/80509506转载 2019-01-14 17:19:12 · 2448 阅读 · 0 评论 -
spring quartz定时器
1.引入quartz.jar包;如果使用的maven引入方式:<dependency><groupId>org.quartz-scheduler</groupId><artifactId>quartz</artifactId><version>1.8.5</version></dependency...原创 2014-03-17 09:23:10 · 751 阅读 · 0 评论 -
springboot+mybatis
1.pom.xml<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/m...原创 2019-07-18 10:20:05 · 109 阅读 · 0 评论 -
Swagger2+springboot自动生成接口文档
https://baijiahao.baidu.com/s?id=1615175862715619117&wfr=spider&for=pchttps://blog.csdn.net/haiming157/article/details/80661898https://www.jianshu.com/p/05be40b9a7a3https://blog.csdn....转载 2019-07-17 13:34:24 · 2588 阅读 · 1 评论