1. 在做feign服务降级的时候遇到了没有返回值 no feedback的问题 2.经过排查发现是因为service层写在了另外一个api模块而非客户端模块,而spring又没有配置相关的扫描包信息导致扫描不到其他模块的包 扫描不到继承了FallbackFactory接口的类故没有返回值 3. 解 ...
分类:
其他好文 时间:
2021-07-05 16:40:21
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
检测Tomcat日志关键字异常 日常工作中经常会遇到Tomcat日志报特定的错误导致 Linux 服务器CPU暴涨,这时候需要重启应用才可以降下来 所以就需要写一个shell脚本,报出特定的错误就重启应用 shell脚本如下: [root@Mike-VM-Node-10_10_0_188 ~]# v ...
分类:
其他好文 时间:
2021-07-02 16:18:28
阅读次数:
0
//把创建的对象都放到applicationContext容器中,要用时,在通过id一个一个取出来 壹、第一个spring项目 主配置文件 <beans> <bean id="a" class="com.dh.service.impl.SomeServiceImpl"/></beans> //在sp ...
分类:
编程语言 时间:
2021-07-02 15:49:28
阅读次数:
0
//springmvc就是一个spring框架,它能创建对象,并将对象放到springMVC的容器中。也能使用ioc管理对象,也可以使用<bean>,@Component,@Repository,@Service,@Controller等注解。但springmvc容器中主要放的是控制器对象 一、控制 ...
分类:
编程语言 时间:
2021-07-02 15:48:41
阅读次数:
0
1.安装python sudo yum install -y curl policycoreutils-pythonopenssh-server 2.将SSH服务设置成开机自启动,分别执行以下命令: sudo systemctl enable sshd sudo systemctl start ss ...
分类:
系统相关 时间:
2021-07-01 17:07:32
阅读次数:
0
背景 参考了狂神老师的 Docker 教程,非常棒! https://www.bilibili.com/video/BV1og4y1q7M4?p=15 直接运行容器 本地找不到镜像会自动下载 --rm Automatically remove the container when it exits ...
分类:
其他好文 时间:
2021-07-01 16:48:43
阅读次数:
0
线程共包括以下 5 种状态: 1. 新建状态(New): 线程对象被创建后,就进入了新建状态。例如,Thread thread = new Thread()。 2. 就绪状态(Runnable): 也被称为“可执行状态”。线程对象被创建后,其它线程调用了该对象的start()方法,从而来启动该线程。 ...
分类:
编程语言 时间:
2021-07-01 16:42:38
阅读次数:
0
原文地址:https://www.cnblogs.com/godlovelian/p/5643996.html 前提:存在数据库di_test,主键为id。1.创建一个索引sequence create sequence di_test_id minvalue 1 nomaxvalue start ...
分类:
数据库 时间:
2021-07-01 16:25:30
阅读次数:
0
安装必要的软件包 pacman -S bluez bluez-utils pavucontrol pipewire-pulse bluez软件包提供蓝牙协议栈 bluez-utils软件包提供bluetoothctl工具 pulse作为原来pulseaudio的替代,pavucontrol提供图形化 ...
分类:
系统相关 时间:
2021-06-30 18:39:48
阅读次数:
0