# java准备 - 下载jdk,目前test01服务器上有D:\tools\java相关\java\jdk-8u121-windows-x64.exe # ide: ## ideaj: - 下载地址:https://www.jetbrains.com/idea/ - 安装 # springboot > 和.net mvc 相似点: ``` 1、Chain相当于.net中的Middleware(非core项目参考自host项目的owin) (有个好听的名字:洋葱模型-->请求一层一层进去,再一层一层出来) 2、Interceptor相当于.net中的Filter 3、路由这块和webapi一样用,但是大小写敏感 4、注解类似于特性 ``` > 依赖注入 ``` 类上加上@Service,@Component,生命周期默认为singleton,也可通过@Scope指定 ``` > 一次请求的生命周期 > 各种初始化 # springcloud [史上最简单的 SpringCloud 教程](https://github.com/forezp/SpringCloudLearning) > 服务注册与发现 >> eureka: ``` 1、无中心化的注册中心 2、 ``` >> zookeeper: ``` 1、一个leader节点,其余都是follower,走的Paxos协议来选举以及同步各个节点数据 2、只有leader接受更新操作,然后会同步更新到各个follower节点上 ``` > 服务消费者 > 断路器 # db ## mybatis: ## druid: