当前位置: 首页 > news >正文

工信部网站备案查询系统北京做网站推广

工信部网站备案查询系统,北京做网站推广,建设执业资格注册管理中心网站,阿里巴巴国际站b2b平台1. 学习之前要知道的 springcloud 应用的技术 2. springboot 和 springcloud 的版本选型 官网介绍:https://spring.io/projects/spring-cloud/#overview 生成新的Spring Cloud项目 最简单的入门方法是访问start.spring.io,选择您的Spring Boot版本和要使…

1. 学习之前要知道的
springcloud 应用的技术
2. springboot 和 springcloud 的版本选型

官网介绍:https://spring.io/projects/spring-cloud/#overview

生成新的Spring Cloud项目
最简单的入门方法是访问start.spring.io,选择您的Spring Boot版本和要使用的Spring Cloud项目。生成项目时,这会将相应的Spring Cloud BOM版本添加到您的Maven / Gradle文件中。

将Spring Cloud添加到现有的Spring Boot应用程序
如果您现有的Spring Boot应用程序想要将Spring Cloud添加到该应用程序,则第一步是确定您应该使用的Spring Cloud版本。您在应用中使用的版本将取决于您使用的Spring Boot的版本

本文将使用 springboot 2.3.0.RELEASE 和 springcloud Hoxton.SR11 构建 springcloud 项目

springboot 与 springcloud 版本选择

更详细的介绍参考: https://start.spring.io/actuator/info

{"git": {"branch": "1e4d6a48a9df249322972d9c1c6de3d3e38db0e8","commit": {"id": "1e4d6a4","time": "2021-05-21T13:52:17Z"}},"build": {"version": "0.0.1-SNAPSHOT","artifact": "start-site","versions": {"spring-boot": "2.5.0","initializr": "0.11.0-SNAPSHOT"},"name": "start.spring.io website","time": "2021-05-21T13:53:46.862Z","group": "io.spring.start"},"bom-ranges": {"azure": {"2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.4.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"codecentric-spring-boot-admin": {"2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","2.3.1": "Spring Boot >=2.3.0.M1 and <2.5.0-M1"},"solace-spring-boot": {"1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.0": "Spring Boot >=2.3.0.M1 and <2.5.0-M1"},"solace-spring-cloud": {"1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","2.0.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"spring-cloud": {"Hoxton.SR11": "Spring Boot >=2.2.0.RELEASE and <2.3.12.BUILD-SNAPSHOT","Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.12.BUILD-SNAPSHOT and <2.4.0.M1","2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1","2020.0.0-M4": "Spring Boot >=2.4.0.M2 and <=2.4.0-M3","2020.0.0": "Spring Boot >=2.4.0.M4 and <=2.4.0","2020.0.2": "Spring Boot >=2.4.1 and <2.5.0-M1","2020.0.3-SNAPSHOT": "Spring Boot >=2.4.7-SNAPSHOT"},"spring-cloud-alibaba": {"2.2.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"},"spring-cloud-gcp": {"2.0.0": "Spring Boot >=2.4.0-M1 and <2.5.0-M1"},"spring-cloud-services": {"2.2.6.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.RELEASE","2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1","2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1"},"spring-geode": {"1.2.12.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.3.11.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","1.4.6": "Spring Boot >=2.4.0-M1 and <2.5.0-M1","1.5.0": "Spring Boot >=2.5.0-M1"},"vaadin": {"14.6.1": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1"},"wavefront": {"2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1","2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1","2.2.0-RC1": "Spring Boot >=2.5.0-M1"}},"dependency-ranges": {"native": {"0.9.0": "Spring Boot >=2.4.3 and <2.4.4","0.9.1": "Spring Boot >=2.4.4 and <2.4.5","0.9.2": "Spring Boot >=2.4.5 and <2.5.0-M1","0.10.0-SNAPSHOT": "Spring Boot >=2.5.0-M1 and <2.6.0-M1"},"okta": {"1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1","1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1","2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1"},"mybatis": {"2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1"},"camel": {"3.3.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"open-service-broker": {"3.1.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.3.0": "Spring Boot >=2.4.0-M1 and <2.5.0-M1"}}
}
3. 步骤

(1)建 module
(2)改 pom
(3)写 yml
(4)主启动类
(5)业务代码

pom.xml

<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.test.wl</groupId><artifactId>springcloud</artifactId><version>0.0.1-SNAPSHOT</version><packaging>pom</packaging><modules><module>cloud-provider-payment8001</module></modules><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.3.0.RELEASE</version></parent><!-- 统一jar包管理 --><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.traget>1.8</maven.compiler.traget><junit.version>4.12</junit.version><log4j.version>1.2.17</log4j.version><lombok.version>1.18.12</lombok.version><mysql.version>8.0.23</mysql.version><druid.verison>1.1.22</druid.verison><mybatis.spring.boot.version>2.1.4</mybatis.spring.boot.version><spring.boot.starter.web>2.3.0.RELEASE</spring.boot.starter.web><spring.boot.starter.jdbc>2.3.0.RELEASE</spring.boot.starter.jdbc><spring.boot.starter.actuator>2.3.0.RELEASE</spring.boot.starter.actuator><spring.boot.starter.test>2.3.0.RELEASE</spring.boot.starter.test><spring.boot.devtools>2.3.0.RELEASE</spring.boot.devtools></properties><dependencyManagement><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>2.3.0.RELEASE</version></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>Hoxton.SR11</version><type>pom</type><scope>import</scope></dependency><dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-alibaba-dependencies</artifactId><version>2.2.1.RELEASE</version><type>pom</type><scope>import</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId><version>${spring.boot.starter.jdbc}</version></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql.version}</version></dependency><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>${druid.verison}</version></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>${mybatis.spring.boot.version}</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><version>${spring.boot.starter.web}</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId><version>${spring.boot.starter.actuator}</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><version>${spring.boot.starter.test}</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><version>${spring.boot.devtools}</version><scope>runtime</scope><optional>true</optional></dependency></dependencies></dependencyManagement><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.3.0.RELEASE</version><configuration><fork>true</fork><addResources>true</addResources></configuration></plugin></plugins></build>
</project>

跟尚硅谷大佬(阳哥)一起学 springcloud
视频链接:https://www.bilibili.com/video/BV18E411x7eT?from=search&seid=11397380345672811627
我的项目地址:https://gitee.com/wl_projects/springcloud.git

最后编辑于:2024-12-10 21:05:46


喜欢的朋友记得点赞、收藏、关注哦!!!

http://www.ds6.com.cn/news/109736.html

相关文章:

  • 黄埭做网站免费外链网站seo发布
  • 景区网站建设费用长沙百度快照优化排名
  • 中央疫情防控最新政策青岛神马排名优化
  • 中英西班牙网站建设seo专员是干什么的
  • 公司创建一个网站多少钱数据平台
  • 网站建设公司怎么赚钱搜索引擎优化实验报告
  • 计算机科学与技术网站网站设计公司报价
  • 网站弹出广告的是怎么做的小黄豆crm
  • 电子商务网站建设和维护如何编写一个网站
  • 网站要怎么做关键词国外b站不收费免费2023
  • 做个网站需要多钱代运营公司排行榜
  • 老网站绑定新网站如何做seo代码优化步骤
  • 交互做的好的网站百度搜索竞价推广
  • 测试网站的方法今日新闻头条最新消息
  • 品牌公关策划案例seo培训课程
  • 在aws上安装WordPress百度上海推广优化公司
  • 我的家乡网站建设石家庄网站建设公司
  • 私人可以做org后缀网站吗泉州seo排名扣费
  • 网站安全建设进展情况网站搭建的流程
  • 2017网站建设费用今天最新的新闻
  • 专业外贸制作网站广告投放平台都有哪些
  • 网站开发用那个软件seo优化网络公司
  • 专门做水果的网站网络销售怎么学
  • 网站建设案例怎么样吸引人的软文标题
  • 图片下载网站西安seo托管
  • 如何在腾讯云做网站企业培训机构排名前十
  • 南宁网站设计方案百度提升排名
  • 兰州优秀网站推广重庆森林经典台词罐头
  • .net网站空间好123上网主页
  • 99到家网站怎么做新闻平台发布