08 2020 档案

摘要:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-08-27 11:37:10.017 ERROR 22436 阅读全文
posted @ 2020-08-27 14:32 Dream's 阅读(4220) 评论(0) 推荐(0)
摘要:org.springframework.amqp.AmqpIOException: java.io.IOException at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccess 阅读全文
posted @ 2020-08-26 17:56 Dream's 阅读(2136) 评论(0) 推荐(0)
摘要:org.springframework.amqp.AmqpTimeoutException: java.util.concurrent.TimeoutException at org.springframework.amqp.rabbit.support.RabbitExceptionTransla 阅读全文
posted @ 2020-08-26 17:23 Dream's 阅读(3018) 评论(0) 推荐(0)
摘要:由于RabbitMQ是基于Erlang(面向高并发的语言)语言开发,所以在安装RabbitMQ之前,需要先安装Erlang。Erlang在默认的YUM存储库中不可用,因此您将需要安装EPEL存储库。 安装EPEL存储库 yum -y install epel-release yum -y updat 阅读全文
posted @ 2020-08-21 10:11 Dream's 阅读(121) 评论(0) 推荐(0)
摘要:springboot项目,上传文件,报错:the temporary upload location [/tmp/tomcat.4519862041770988807.8082/work/Tomcat/localhost/ROOT] is not valid 原因:springboot上传文件,或默 阅读全文
posted @ 2020-08-14 17:01 Dream's 阅读(1010) 评论(0) 推荐(0)
摘要:数组转换遇到异常:java.lang.UnsupportedOperationException 代码: String[] otherUserFromArray = new String[]{"a","b","c"}; List<String> userFromList = Arrays.asLis 阅读全文
posted @ 2020-08-14 16:36 Dream's 阅读(171) 评论(0) 推荐(0)
摘要:判断两个数组里是否有相同的数据,用到了containsAll,后来发现,及时有相同的,也返回false。 经排查,原来是A.containsAll(B),A必须完全包含B才会返回true,即A>=B。 源码: 源码里遍历,只要有一个不存在的,立马会返回false。 阅读全文
posted @ 2020-08-14 15:48 Dream's 阅读(614) 评论(0) 推荐(0)
摘要:group_concat函数默认长度1024,超过会自动截取。 解决: 修改group_concat限制长度。 1.数据库直接通过sql修改 查询限制长度 show variables like 'group_concat_max_len'; 修改当前会话的长度限制 SET SESSION grou 阅读全文
posted @ 2020-08-14 15:09 Dream's 阅读(2130) 评论(0) 推荐(0)
摘要:下载jdk8:jdk-8u161-linux-x64.tar 链接:https://pan.baidu.com/s/1sL0huIx--uULfVkBONsnuA 提取码:er81 1.解压 tar -zxvf jdk-8u161-linux-x64.tar 2.修改配置 vim /etc/prof 阅读全文
posted @ 2020-08-13 18:20 Dream's 阅读(178) 评论(0) 推荐(0)
摘要:1.增加如下配置: 负载均衡初步完成了。upstream按照轮询(默认)方式进行负载,每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服务器down掉,能自动剔除。 2.权重 增加 weight 参数,指定轮询几率,weight和访问比率成正比,用于后端服务器性能不均的情况。如下所示,8083 阅读全文
posted @ 2020-08-13 17:55 Dream's 阅读(180) 评论(0) 推荐(0)
摘要:scp 账号@IP:文件地址 目标地址 scp root@192.168.0.1:/data/jdk-8u161-linux-x64.tar.gz /data/jdk-8u161-linux-x64.tar.gz 阅读全文
posted @ 2020-08-10 14:07 Dream's 阅读(235) 评论(0) 推荐(0)