美文网首页
spring cloud笔记

spring cloud笔记

作者: 我是电饭煲 | 来源:发表于2020-03-30 19:44 被阅读0次

eureka原理文章

https://www.infoq.cn/article/jlDJQ*3wtN2PcqTDyokh

Greenwich版本eureka client注册eureka

@EnableWebSecurity
public class WebConfig extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
//        更好的办法是,配置/eureka/**忽略csrf防御拦截,直接放行(/eureka/**是在application.yml中配置的eureka注册地址)
        http.csrf().ignoringAntMatchers("/eureka/**");
        super.configure(http);
    }

https://blog.csdn.net/joe_storm/article/details/86700646

Greenwich.SR3版本eureka,设置页面登录密码

  • 引入spring-boot-starter-security
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
</dependency>
  • application.yml文件配置
spring:
  security:
    user:
      name: admin
      password: admin

Spring Cloud 开源软件都有哪些?

https://my.oschina.net/ityouknow/blog/1923560

教程

https://github.com/ityouknow/spring-cloud-examples
https://github.com/roncoo/spring-cloud-demo

spring cloud 基础中文教程

https://www.springcloud.cc/spring-cloud-dalston.html#_service_discovery_eureka_clients

awesome-spring-cloud教程

https://github.com/ityouknow/awesome-spring-cloud
https://gitee.com/ityouknow/awesome-spring-cloud

spring cloud Finchley maven版本

  • <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>

基本微服务架构

image.png

相关文章

网友评论

      本文标题:spring cloud笔记

      本文链接:https://www.haomeiwen.com/subject/ywvbuctx.html