验证 NanoMQ stop slow 的问题
daemon 和非 daemon 两种方式 docker stop 都很慢
疑问是默认情况下,SIGTERM 会被处理。
模拟 docker 内发送 SIGTERM 信号
# The default signal for kill is TERM
# pkill will send the specified signal (by defau…
什么是循环依赖?
// A依赖了B
class A{
public B b;
}
// B依赖了A
class B{
public A a;
}
如果不考虑Spring,循环依赖并不是问题,因为对象之间相互依赖是很正常的事情
A a new A();
B b new B();
a.b b;
b.a a; 这样,A&a…
一、前言:
Spring Bean 的生命周期之前先来了解两个概念: 1.1 什么是 Bean In Spring, the objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is in…
在我输入:zkServer.sh status 之后出现报错码.
报错码: ZooKeeper JMX enabled by default Using config: /opt/software/zookeeper/bin/../conf/zoo.cfgClient port found: 2181. Client address: localhost. Error contacting service. It is probably not runni…