
学习
ilifee
学如逆水行舟,不进则退
展开
-
ieda显示services标签栏
ieda显示services标签栏原创 2022-07-07 16:53:14 · 229 阅读 · 0 评论 -
springboot 隐藏并代理远程文件
代码如下:@GetMapping("getImage") public void getImage(HttpServletResponse response) throws IOException { String path = "你的图片网络地址"; URL url = new URL(path); InputStream in = url.openStream(); byte[] buff = new byte[in.avail原创 2021-10-27 10:18:50 · 227 阅读 · 0 评论 -
No service to register for nacos client...
No service to register for nacos client... 调试代码出现问题调试代码出现问题根据报错排查最后排查到debuger后发现@Value 得到的值为空。排查后,spring.application.name配置没有问题排查发现项目自己添加了注掉这个bean后问题解决。...原创 2021-08-05 15:07:18 · 1200 阅读 · 5 评论 -
redis执行lua脚本原子性
redis执行lua脚本原子性redis官方解释Atomicity of scriptsRedis uses the same Lua interpreter to run all the commands. Also Redis guarantees that a script is executed in an atomic way: no other script or Redis command will be executed while a script is being executed原创 2021-05-15 10:07:05 · 1508 阅读 · 0 评论 -
git远程仓库切换
1、切换远程仓库地址:方式一:修改远程仓库地址【git remote set-url origin URL】 更换远程仓库地址,URL为新地址。方式二:先删除远程仓库地址,然后再添加【git remote rm origin】 删除现有远程仓库 【git remote add origin url】添加新远程仓库2、【git remote -v 】查看远程仓库的地址...原创 2018-12-07 08:58:35 · 354 阅读 · 0 评论 -
springboot重试组件
最近有一个业务需要有重试机制,感觉应该写一个能够重试的组件。 首先创建一个注解/** * @Author GUOSHAOHUA093 * @Description 重试拦截 * @Date 9:14 2018/12/8 */@Retention(RetentionPolicy.RUNTIME)public @interface IsTryAgain { int t...原创 2018-12-08 16:07:35 · 451 阅读 · 0 评论 -
zuul报forward错误问题 com.netflix.zuul.exception.ZuulException: Forwarding error
最近使用zuul的时候总出现forward报错的问题,上代码:com.netflix.zuul.exception.ZuulException: Forwarding error at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFi原创 2017-09-29 15:54:40 · 90756 阅读 · 32 评论 -
阿里云 centos7.2安装rabbitmq
首先安装二郎神(erlang)依赖环境yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-glyum install erlang安装rabbitmqwget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1原创 2017-04-26 14:37:31 · 1593 阅读 · 0 评论 -
RabbitMQ服务安装配置
RabbitMQ是流行的开源消息队列系统,是AMQP(Advanced Message Queuing Protocol高级消息队列协议)的标准实现,用erlang语言开发。RabbitMQ据说具有良好的性能和时效性,同时还能够非常好的支持集群和负载部署,非常适合在较大规模的分布式系统中使用,具体特性还在验证中,待检验。由于项目需要,安装并配置了RabbitMQ,服务器操作系统是CentOS7,服转载 2017-04-11 15:28:06 · 443 阅读 · 0 评论 -
将jar包安装到本地仓库
将jar包安装到本地仓库mvn install:install-file -DgroupId=com.answern -DartifactId=com.answern.faceout.service -Dversion=0.0.1 -Dpackaging=jar -Dfile=F:/com.answern.faceout.service.jar c原创 2017-03-16 10:09:27 · 427 阅读 · 0 评论 -
ElasticSearch使用教程四(ElasticSearch查询详解)
一、简介说明注意:以下命令都是使用sense测试(ElasticSearch第二步-CRUD之Sense),且数据都已经使用过IK分词。以下测试数据来源于文档(db_test/person)需要注意的是下面的id是文档的ID,不是elasticsearch生成的_id,删除文档需要用_id{ "id": "0959ab1c-47bf-4417-904c-e5bc转载 2017-03-03 15:42:46 · 587 阅读 · 0 评论 -
143. Reorder List学习
143. Reorder List Total Accepted: 71015 Total Submissions: 301125 Difficulty: MediumGiven a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do th原创 2016-08-10 17:06:23 · 372 阅读 · 0 评论 -
LeetCode学习
1. Two SumTotal Accepted: 264908Total Submissions: 1053667Difficulty: EasyGiven an array of integers, return indices of the two numbers such that they add up to a specific target原创 2016-07-29 17:52:02 · 353 阅读 · 0 评论