摘要: @SpringbootApplication 注解 @SpringBootConfiguration | @Configuration | @Component ​ 实际作用就是将主启动类注入到ioc中 @EnableAutoConfiguration | @AutoConfigurationPac 阅读全文
posted @ 2020-05-11 22:11 CyberPelican 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Instead,when one {@code @Bean} method invokes another {@code @Bean} method in lite mode, the invocation is a standard Java method invocation; Spring d 阅读全文
posted @ 2020-05-11 21:31 CyberPelican 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 03. Feign Feign使用面向api编程, 来简化编程 ,默认使用==RoundRobbin==,可以不需要额外配置负载均衡 在ribbon的基础上修改 1. microsoft api 修改api的pom.xml添加 添加一个接口 2. 添加一个模块, 将consumer拷贝 添加依赖 修 阅读全文
posted @ 2020-05-11 14:08 CyberPelican 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 02. Ribbon 用于负载均衡 在eureka的基础上修改消费者模块 添加依赖 如果引入的 就可以不用引入ribbon依赖 修改yml 修改主启动类 修改ConfigBean 默认使用 类似于RoundRobbin 修改controller 如果不需要自定义Ribbon配置运行即可 自定义Rib 阅读全文
posted @ 2020-05-11 14:04 CyberPelican 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 01. eureka 单eureka Server 这里末尾的/表示访问的是一个目录(默认访问default.html或是index.html),也可以不加,如果不加表示首先当作servlet处理,如果找不到就当作目录处理 主启动类 provider application.yml controll 阅读全文
posted @ 2020-05-11 14:02 CyberPelican 阅读(173) 评论(0) 推荐(0) 编辑