建网站怎么样才能流畅,精美ppt模板下载免费,wordpress 上传失败,专做宝宝的用品网站1. 学习之前要知道的 springcloud 应用的技术 2. springboot 和 springcloud 的版本选型 官网介绍#xff1a;https://spring.io/projects/spring-cloud/#overview 生成新的Spring Cloud项目 最简单的入门方法是访问start.spring.io#xff0c;选择您的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 version1.0 encodingutf-8?
project xmlnshttp://maven.apache.org/POM/4.0.0 xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.test.wl/groupIdartifactIdspringcloud/artifactIdversion0.0.1-SNAPSHOT/versionpackagingpom/packagingmodulesmodulecloud-provider-payment8001/module/modulesparentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.3.0.RELEASE/version/parent!-- 统一jar包管理 --propertiesproject.build.sourceEncodingUTF-8/project.build.sourceEncodingmaven.compiler.source1.8/maven.compiler.sourcemaven.compiler.traget1.8/maven.compiler.tragetjunit.version4.12/junit.versionlog4j.version1.2.17/log4j.versionlombok.version1.18.12/lombok.versionmysql.version8.0.23/mysql.versiondruid.verison1.1.22/druid.verisonmybatis.spring.boot.version2.1.4/mybatis.spring.boot.versionspring.boot.starter.web2.3.0.RELEASE/spring.boot.starter.webspring.boot.starter.jdbc2.3.0.RELEASE/spring.boot.starter.jdbcspring.boot.starter.actuator2.3.0.RELEASE/spring.boot.starter.actuatorspring.boot.starter.test2.3.0.RELEASE/spring.boot.starter.testspring.boot.devtools2.3.0.RELEASE/spring.boot.devtools/propertiesdependencyManagementdependenciesdependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-dependencies/artifactIdversion2.3.0.RELEASE/version/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-dependencies/artifactIdversionHoxton.SR11/versiontypepom/typescopeimport/scope/dependencydependencygroupIdcom.alibaba.cloud/groupIdartifactIdspring-cloud-alibaba-dependencies/artifactIdversion2.2.1.RELEASE/versiontypepom/typescopeimport/scope/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-jdbc/artifactIdversion${spring.boot.starter.jdbc}/version/dependencydependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdversion${mysql.version}/version/dependencydependencygroupIdcom.alibaba/groupIdartifactIddruid/artifactIdversion${druid.verison}/version/dependencydependencygroupIdorg.mybatis.spring.boot/groupIdartifactIdmybatis-spring-boot-starter/artifactIdversion${mybatis.spring.boot.version}/version/dependencydependencygroupIdorg.projectlombok/groupIdartifactIdlombok/artifactIdversion${lombok.version}/version/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactIdversion${spring.boot.starter.web}/version/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-actuator/artifactIdversion${spring.boot.starter.actuator}/version/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-test/artifactIdversion${spring.boot.starter.test}/version/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-devtools/artifactIdversion${spring.boot.devtools}/versionscoperuntime/scopeoptionaltrue/optional/dependency/dependencies/dependencyManagementbuildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactIdversion2.3.0.RELEASE/versionconfigurationforktrue/forkaddResourcestrue/addResources/configuration/plugin/plugins/build
/project跟尚硅谷大佬阳哥一起学 springcloud 视频链接https://www.bilibili.com/video/BV18E411x7eT?fromsearchseid11397380345672811627 我的项目地址https://gitee.com/wl_projects/springcloud.git 最后编辑于2024-12-10 21:05:46 © 著作权归作者所有,转载或内容合作请联系作者 喜欢的朋友记得点赞、收藏、关注哦