原创 SpringCloud-Hystrix-Timeout機制

初始化數據 初始化線程池 // com.netflix.hystrix.AbstractCommand#initThreadPool private static HystrixThreadPool initThre

原创 java proxy原理

準備測試環境 public interface UserService { void save(String name); } @Slf4j public class UserServiceImpl implements

原创 03-mybatis mapper proxy

準備代理對象 public <T> void addMapper(Class<T> type) { if (type.isInterface()) { if (hasMapper(type)) {

原创 01-mybatis配置初始化

mybatis提供了兩種配置文案案:基於Xml或基於Api 先看下mybatis提供的配置屬性 configuration(配置) properties(屬性) settings(設置) typeAliases(類型別名) typ

原创 Bean Object Persistence

MyBean Source: package com.uc.beantest; import java.io.Serializable; public class MyBean implements Serializable {

原创 nginx環境初始化

環境配置 安裝依賴 yum -y install pcre-devel openssl-devel 配置 ./configure --prefix=/usr/local/nginx --with-http_ssl_module 配置結

原创 MariaDB 安裝與環境初始化

上下文: OS:CentOS Linux release 7.4.1708 (Core) 安裝方式:Yum 準備Yum源 curl -sS https://downloads.mariadb.com/MariaDB/mariadb_r