4.1.3.微服务的核心之springboot重新认识【上】 3.1.springboot重新认识 3.1.1.springboot的前世今生 3.1.1.1.spring boot是什么? 从spring framework开始,核心功能:IOC/DI和MVC,AOP. spring中bean自动 ...
分类:
编程语言 时间:
2020-07-03 19:45:07
阅读次数:
55
听说你还没学Spring就被源码编译劝退了?30+张图带你玩转Spring编译 ...
分类:
编程语言 时间:
2020-07-03 19:40:17
阅读次数:
56
首先是锁的抽象类,定义了继承的类必须实现加锁、释放锁、返回锁拥有者的方法。 namespace Illuminate\Cache; abstract class Lock implements LockContract { use InteractsWithTime; // 锁的名称 protect ...
分类:
其他好文 时间:
2020-07-03 19:26:42
阅读次数:
55
这张图是最最简单的处理流程图,其中还省略了初始化国际化、事件广播器等流程;下面参照ClassPathXmlApplicationContext源码,记录下IOC容器启动的大致流程: 1、ClassPathXmlApplicationContext构造器 public ClassPathXmlAppl ...
分类:
编程语言 时间:
2020-07-03 19:09:19
阅读次数:
61
使用Spring Cloud Bus自动刷新配置 1. 简介 上一章已经实现了使用服务配置中心集中管理配置文件,并可/actuator/refresh手动刷新配置而不需重启。但如果所有微服务节点的配置都需要手动刷新,工作量也很大。所以本文将使用Spring Cloud Bus实现配置的自动刷新。 S ...
分类:
编程语言 时间:
2020-07-03 19:07:57
阅读次数:
107
springboot的Web开发 web开发我们需要导入的两个依赖有: thymeleaf 和 Spring Web <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-th ...
分类:
编程语言 时间:
2020-07-03 19:07:25
阅读次数:
55
目前环境:win7系统,已在本地安装了nodejs v10.16.0,npm v6.9.0,且在环境变量中配置了node_global和node_cache,在npm config中配置了prefix和cache。 具体的配置参见:https://www.jianshu.com/p/c145128e ...
分类:
Web程序 时间:
2020-07-03 17:53:35
阅读次数:
112
mybatis.mapperLocations=classpath:mapping/apis/*.xml,classpath*:mapping/item/*.xml被引用工程的mybatis xml 位于:resources/mapping/apis引用方的工程mybatis xml 位于:reso ...
分类:
编程语言 时间:
2020-07-03 17:34:52
阅读次数:
62
一、Spring Cloud OpenFeign 官网:https://cloud.spring.io/spring-cloud-openfeign/2.2.x/reference/html/#spring-cloud-feign Feign是声明式的web服务客户端,使用feign可以使web服务 ...
分类:
其他好文 时间:
2020-07-03 17:27:10
阅读次数:
174
执行npm install的时候报错npm ERR! Unexpected end of JSON input while parsing near '...sh_time":141072930277'.如下图: 直接执行 npm cache clean --force, 如果执行成功,再npm i ...
分类:
Web程序 时间:
2020-07-03 15:45:57
阅读次数:
79