spring cloud多环境配置

在做项目的时候,往往有多种环境,开发/测试/生产等,但不能每一次都去修改配置文件,于是可以通过配置来选择你所需的环境。
这里写图片描述
application-dev.yml:开发环境
application-test.yml:测试环境
application-prod.yml:生产环境
在pom.xml文件中,配置如下内容:

 <profiles>
     <!--开发环境-->
     <profile>
         <id>dev</id>
         <properties>
             <build.profile.id>dev</build.profile.id>
         </properties>
         <activation>
             <activeByDefault>true</activeByDefault>
         </activation>
     </profile>
     <!--测试环境-->
     <profile>
         <id>test</id>
         <properties>
             <build.profile.id>test</build.profile.id>
         </properties>
     </profile>
     <!--生产环境-->
     <profile>
         <id>prod</id>
         <properties>
             <build.profile.id>prod</build.profile.id>
         </properties>
     </profile>
 </profiles>

 <build>
     <finalName>${project.artifactId}</finalName>
     <resources>
         <resource>
             <directory>src/main/resources</directory>
             <filtering>false</filtering>
         </resource>
         <resource>
             <directory>src/main/resources.${build.profile.id}</directory>
             <filtering>false</filtering>
         </resource>
     </resources>

     <plugins>
         <plugin>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-maven-plugin</artifactId>
         </plugin>
     </plugins>
 </build>

application.yml中配置如下内容,就会默认加载开发环境的属性,其他同理 :

spring:
  profiles:
    active: dev

注:如果spring.profiles.active没有指定值,那么只会使用没有指定spring.profiles文件的值,也就是只会加载通用的配置。
application-dev.yml,这里根据自己的开发参数进行修改,我这里是多环境区分注册中心地址,示例代码如下:

server:
  port: 8765
eureka:
  instance:
    hostname: 192.168.1.12
  client:
    serviceUrl:
      defaultZone:  http://192.168.1.12:1111/eureka/

其他环境同理配置即可
当我们通过命令要启动时通过--spring.profiles.active=xxx来控制加载哪个环境的配置,如下:

java -jar xxx.jar --spring.profiles.active=dev 表示使用开发环境的配置
java -jar xxx.jar --spring.profiles.active=test 表示使用测试环境的配置
java -jar xxx.jar --spring.profiles.active=prod 表示使用生产环境的配置

若果需要单独打包,通过执行 mvn clean package -P ${profile} 来指定使用哪个profile即可

<p><span style="color: #337fe5;"><strong> </strong></span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; font-weight: bolder;"><span style="box-sizing: border-box; word-break: break-all; color: #16a085;">课程介绍 <span style="color: #e03e2d;">【完善体系+精品资料】</span></span></span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">本课程<span style="box-sizing: border-box; word-break: break-all; color: #c0392b;">总计115课</span>时,打造<span style="box-sizing: border-box; word-break: break-all; color: #c0392b;">全网最全的微服务体系课程</span>;从微服务是什么、能够做什么开始讲起,绝对零基础入门到精通类型。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">课程整体脉络十分清晰,<span style="box-sizing: border-box; word-break: break-all; color: #c0392b;">每个章节一个知识点,画图+源码+运行讲解</span>,不信你学不会。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">1、课程先讲解了什么是单体架构、什么是微服务架构、他们之间有什么区别和联系,各自有什么优缺点。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">2、从本质入手,使用最简单的Spring Boot搭建微服务,让你认清微服务是一种思想和解决问题的手段,而不是新兴技术。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">3、讲解Spring Boot 与 Spring Cloud 微服务架构之间的联系,原生的RestTemplate工具,以及Actuator监控端点的使用。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">4、带着微服务所带来的各种优缺点,为大家引入服务发现与注册的概念和原理,从而引入我们的第一个注册中心服务Eureka。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">5、引入负载均衡的理念,区分什么是服务端负载均衡,什么是客户端负载均衡,进而引入Ribbon负载均衡组件的详细使用。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">6、为了解决微服务之间复杂的调用,降低代码的复杂度,我们引入了Feign声明式客户端,让你几行代码学习服务的远程调用。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">7、为了解决服务之间的稳定性,避免发生雪崩问题,我们引入了Hystrix断路器,服务降级和熔断机制。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">8、微服务集群十分庞大,监控起来是十分困难的,尤其是对每一个接口的熔断情况进行监控,因此我们引入了Turbine微服务监控。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">9、微服务的调用是杂乱无章的,可以网状调用,怎么做到统一的入口出口,统一的授权、加密、解密、日志过滤,我们引入了第一代网关Zuul。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">10、微服务的配置分散,每次要修改配置都要重启服务,因此我们引入了Config配置中心。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">11、跟上主流,Consul是当前主流的服务注册与发现、配置中心一体化的解决方案。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">12、阿里的Nacos服务注册与发现、配置中心在国内炙手可热,Nacos 经历过双十一的微服务中间件。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">13、Turbin做微服务监控还是太弱,我们需要更强大,可视化,操作性更强的监控系统,因此我引入了Spring Boot Admin体系。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">14、Zuul已经停止更新支持,Spring Cloud官方推荐的二代网关Spring Cloud Gateway更加强大。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">15、微服务的安全架构体系虽然复杂,但是是有学习条例的,什么是认证授权、什么是OAuth2.0的原理、 JWT、怎么样去开发实现。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; font-weight: bolder;"><span style="box-sizing: border-box; word-break: break-all; color: #16a085;">课程资料 <span style="color: #e03e2d;">【独家资料】</span></span></span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;">1、<span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">课程附带全部63个项目源码,其中Hoxton版本项目源码37个,Edgware版本项目26个,</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">2、230页高清PDF正版课件。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">3、附带nacos、consul、cmder等视频配套软件。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; font-weight: bolder;"><span style="box-sizing: border-box; word-break: break-all; color: #16a085;">学习方法</span></span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">1、每一节课程均有代码,较好的方式为一边听我的讲解,一边使用我提供的项目代码进行观察和运行。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">2、课程体系庞大,但是并不杂乱,每个章节只针对一个知识点,减轻学习压力。</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 20px; word-break: break-all; white-space: pre-wrap; width: 760px; padding: 0px 16px; line-height: 27px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; word-break: break-all; font-size: 14px;">3、坚持每天学习1~2个章节,可以在地铁、公交上用手机学习。</span></p> <p class="MsoListParagraph" style="margin-left: 18.0pt; text-indent: -18.0pt;"><span style="color: #e03e2d;"><strong>【完善知识体系图】</strong></span></p> <p class="MsoListParagraph" style="margin-left: 18.0pt; text-indent: -18.0pt;"><span style="color: #337fe5;"><strong><img src="https://img-bss.csdnimg.cn/202007100719132383.png" alt="" /><br /></strong></span></p>
评论 1 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:终极编程指南 设计师:CSDN官方博客 返回首页

打赏作者

权权qxj

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值