Spring Cloud Alibaba集成Spring boot admin并设置为需要登录后查看

本文介绍了如何将Spring Cloud Alibaba与Spring Boot Admin集成,并设置为需要OAuth2登录后才能查看。首先,文章提及了准备工作,包括引入必要的依赖。接着,详细讲解了实战步骤,如创建启动类添加@EnableAdminServer注解,新建配置文件设定登录页面。最后,作者提供了配置文件的写法,并鼓励读者参考提供的案例进行实践。
摘要由CSDN通过智能技术生成

准备工作-引依赖

<dependencies>
        <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-starter-server</artifactId>
        </dependency>
        <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-server-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat<
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值