rabbitmq版本:3.6.14 spring-core 版本: 4.2.5.RELEASE 备注:如果springboot升级到比较高的版本,能用到更高版本的amqp依赖包和spring-core依赖包,有比以下实现delay延迟消费的更好的代码。 声明exchange: Map<String, ...
分类:
其他好文 时间:
2020-12-19 13:38:01
阅读次数:
4
1.查看系统信息 lsb_release -a #cat /proc/version No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.7 LTS Release: 16.04 Codenam ...
分类:
系统相关 时间:
2020-12-19 12:51:55
阅读次数:
5
1、升级准备 1.1、查看系统版本和ssh版本 cat /etc/*release ssh -V 1.2、下载软件包 Openssh下载地址 https://www.openssh.com/ https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/ http: ...
分类:
其他好文 时间:
2020-12-19 12:38:09
阅读次数:
1
import requests from bs4 import BeautifulSoup import bs4 def getHTMLText(url): try: r = requests.get(url,timeout=30) r.raise_for_status() # 如果状态不是200, ...
分类:
其他好文 时间:
2020-12-19 12:33:55
阅读次数:
1
BFC是什么? 块格式化上下文(Block Formatting Context,BFC) 是Web页面的可视CSS渲染的一部分,是块盒子的布局过程发生的区域,也是浮动元素与其他元素交互的区域。 I know it when I see it 所以,虽然我不知道什么是BFC,但是写出样式,我就能知道 ...
分类:
其他好文 时间:
2020-12-18 12:57:58
阅读次数:
3
pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.5.RELEASE</version> <rel ...
分类:
编程语言 时间:
2020-12-18 12:33:50
阅读次数:
1
前言本文针对版本2.2.0.RELEASE来分析SpringBoot的配置处理源码,通过查看SpringBoot的源码来弄清楚一些常见的问题比如:SpringBoot从哪里开始加载配置文件?SpringBoot从哪些地方加载配置文件?SpringBoot是如何支持yaml和properties类型的配置文件?如果要支持json配置应该如何做?SpringBoot的配置优先级是怎么样的?placeh
分类:
编程语言 时间:
2020-12-18 12:14:37
阅读次数:
3
问题: 尝试了按百度上面其他网友说的添加以下依赖 <dependencyManagement> <dependencies> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-depe ...
分类:
编程语言 时间:
2020-12-17 13:01:25
阅读次数:
1
解决安装 pip3时 错误: Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)' in the drive '/cdrom/' and p ...
分类:
其他好文 时间:
2020-12-17 12:35:15
阅读次数:
2
1)format的基本用法 不带编号,即"{}" 带数字编号,可调换顺序,即"{1}","{2}" 带关键字,即"{a}","{tom}" 2)format的进阶用法 <(默认)左对齐,> 右对齐,^ 中间对齐 取位数"{:4s}","{:.2f}"等 3)format 数值用法 “b” 二进制,数 ...
分类:
编程语言 时间:
2020-12-17 12:18:35
阅读次数:
3