Easter79 Easter79
4年前
springioc学习
springioc类图!(https://oscimg.oschina.net/oscnet/up1f3f48e7a24e818fcd4392d8ab50311b462.png)springioc关键接口:ResourceBeanDefinitionReaderBeanFactoryBeanDe
Easter79 Easter79
4年前
SpringBoot2.0 基础案例分类目录,附源码地址
本文源码GitHub:知了一笑https://gitee.com/cicadasmile/springbootbaseSpringBoot2基础文章分类1、入门基础SpringBoot2.0基础案例(01):环境搭建和RestFul风格接口(http
Wesley13 Wesley13
4年前
Java实现Ping命令
前言在项目中有的时候需要检测两台服务器能不能正常通信,需要用到Ping命令。目前已知的可分为两类方法:1.使用JavaAPI的InetAddress方式2.使用Runtime.exec调用操作系统的命令CMD使用InetAddress实现Ping自Java1.5开始,java.
Stella981 Stella981
4年前
SpringBoot2.0 基础案例分类目录,附源码地址
本文源码GitHub:知了一笑https://gitee.com/cicadasmile/springbootbaseSpringBoot2基础文章分类1、入门基础SpringBoot2.0基础案例(01):环境搭建和RestFul风格接口(http
Stella981 Stella981
4年前
SpringBoot 集成Netty实现UDP Server
注:ApplicationRunner接口是在容器启动成功后的最后一步回调(类似开机自启动)。UDPServerpackagecom.vmware.vCenterEvent.netty;importio.netty.bootstrap.Bootstrap;importio.netty.ch
Stella981 Stella981
4年前
ArrayBlockingQueue 和LinkedBlockQueue
ArrayBlockingQueueArrayBlockingQueue是Java多线程常用的线程安全的一个集合,基于数组实现,继承自AbstractQueue,实现了BlockingQueue和Serializable接口。//先看看器内部的成员变量:privatestaticfinallongserialV
Stella981 Stella981
4年前
Redis 发布订阅
Redis发布订阅Redis发布订阅(pub/sub)是一种消息通信模式:发送者(pub)发送消息,订阅者(sub)接收消息。Redis客户端可以订阅任意数量的频道。下图展示了频道channel1,以及订阅这个频道的三个客户端——client2、client5和client1之间的关系:!(
Stella981 Stella981
4年前
Shiro源码分析
    在Shiro中,登录操作是由Subject的login()方法完成的,Subject是个接口,在Web环境中,实现类为WebDelegatingSubject,login方法从DeletatingSubject继承而来:publicvoidlogin(AuthenticationTokentoken)throwsAuthenti
Easter79 Easter79
4年前
Spring中ApplicationContext的事件机制
   ApplicationContext事件机制是观察者设计模式的实现,通过ApplicationEvent类和ApplicationListener接口,可以实现ApplicationContext事件处理。如果容器中有一个ApplicationListenerBean,每当ApplicationContext发布ApplicationEvent时,
Seata 源码
作者:京东物流张士欣核心接口和类ResourceManagerResourceManager是seata的重要组件之一,RM负责管理分支数据资源的事务。AbstractResourceManager实现ResourceManager提供模板方法。Defau