ReflectASM 用法
ReflectASM 是一个很小的 java 类库,它仅仅有 5 个类,但是却提供了非常高性能的属性操作、方法调用、构造方法调用,它在底层使用了 asm https://www.ibm.com/developerworks/cn/java/j-lo-asm30/index.htm 动态构建出字节码,这相比于反射,直接方法的调用性能高出很多。
CentOS 7 升级内核
The kernel is the core of an operating system. The Linux kernel is the monolithic Unix-like kernel of the Linux computer operating system. It was created by Linux Torvalds, and all Linux distributions including Ubuntu, CentOS and Debian are based on this kernel - the Linux kernel.
Springboot 优雅停止服务的几种方法
在使用 SpringBoot 的时候,都要涉及到服务的停止和启动,当我们停止服务的时候,很多时候大家都是 kill -9 直接把程序进程杀掉,这样程序不会执行优雅的关闭。而且一些没有执行完的程序就会直接退出。
我们很多时候都需要安全的将服务停止,也就是把没有处理完的工作继续处理完成。比如停止一些依赖的服务,输出一些日志,发一些信号给其他的应用系统,这个在保证系统的高可用是非常有必要的。那么咱么就来看一下几种停止 SpringBoot 的方法。
共计 238 篇文章,30 页。