springcloud springboot nacos

springcloud    springboot  nacos 版本匹配

https://spring.io/projects/spring-cloud-alibaba

--------------------------------------------------------------------------------------
https://start.spring.io/actuator/info


{
	"git": {
		"branch": "f49cf2f0b441cb307b3ae5ae5f05b1551e69c2a5",
		"commit": {
			"id": "f49cf2f",
			"time": "2023-05-05T18:34:25Z"
		}
	},
	"build": {
		"version": "0.0.1-SNAPSHOT",
		"artifact": "start-site",
		"versions": {
			"spring-boot": "3.0.6",
			"initializr": "0.20.0-SNAPSHOT"
		},
		"name": "start.spring.io website",
		"time": "2023-05-05T18:35:25.197Z",
		"group": "io.spring.start"
	},
	"bom-ranges": {
		"codecentric-spring-boot-admin": {
			"2.4.3": "Spring Boot >=2.3.0.M1 and <2.5.0-M1",
			"2.5.6": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",
			"2.6.8": "Spring Boot >=2.6.0.M1 and <2.7.0-M1",
			"2.7.4": "Spring Boot >=2.7.0.M1 and <3.0.0-M1",
			"3.0.3": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"solace-spring-boot": {
			"1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1",
			"1.2.2": "Spring Boot >=2.6.0.M1 and <3.0.0-M1"
		},
		"solace-spring-cloud": {
			"1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
			"2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",
			"2.3.2": "Spring Boot >=2.6.0.M1 and <3.0.0-M1"
		},
		"spring-cloud": {
			"Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1",
			"2020.0.6": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",
			"2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3",
			"2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-RC1",
			"2021.0.0-RC1": "Spring Boot >=2.6.0-RC1 and <2.6.1",
			"2021.0.7": "Spring Boot >=2.6.1 and <3.0.0-M1",
			"2022.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.0.0-M2",
			"2022.0.0-M2": "Spring Boot >=3.0.0-M2 and <3.0.0-M3",
			"2022.0.0-M3": "Spring Boot >=3.0.0-M3 and <3.0.0-M4",
			"2022.0.0-M4": "Spring Boot >=3.0.0-M4 and <3.0.0-M5",
			"2022.0.0-M5": "Spring Boot >=3.0.0-M5 and <3.0.0-RC1",
			"2022.0.0-RC1": "Spring Boot >=3.0.0-RC1 and <3.0.0-RC2",
			"2022.0.0-RC2": "Spring Boot >=3.0.0-RC2 and <3.0.0",
			"2022.0.2": "Spring Boot >=3.0.0 and <3.1.0-M1"
		},
		"spring-cloud-azure": {
			"4.7.0": "Spring Boot >=2.5.0.M1 and <3.0.0-M1",
			"5.1.0": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"spring-cloud-gcp": {
			"2.0.11": "Spring Boot >=2.4.0-M1 and <2.6.0-M1",
			"3.4.9": "Spring Boot >=2.6.0-M1 and <3.0.0-M1",
			"4.2.0": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"spring-cloud-services": {
			"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",
			"3.3.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",
			"3.4.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",
			"3.5.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
			"4.0.0": "Spring Boot >=3.0.0 and <3.1.0-M1"
		},
		"spring-shell": {
			"2.1.8": "Spring Boot >=2.7.0 and <3.0.0-M1",
			"3.0.2": "Spring Boot >=3.0.0 and <3.1.0-M1"
		},
		"vaadin": {
			"14.9.6": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1",
			"23.2.15": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",
			"23.3.11": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
			"24.0.5": "Spring Boot >=3.0.0-M1 and <3.1.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.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1",
			"2.3.4": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
			"3.0.1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		}
	},
	"dependency-ranges": {
		"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",
			"2.1.6": "Spring Boot >=2.5.0-M1 and <3.0.0-M1",
			"3.0.3": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"mybatis": {
			"2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1",
			"2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1",
			"2.3.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
			"3.0.0": "Spring Boot >=3.0.0-M1"
		},
		"pulsar": {
			"0.2.0": "Spring Boot >=3.0.0 and <3.1.0-M1"
		},
		"pulsar-reactive": {
			"0.2.0": "Spring Boot >=3.0.0 and <3.1.0-M1"
		},
		"camel": {
			"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",
			"3.13.0": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",
			"3.17.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1",
			"3.20.4": "Spring Boot >=2.7.0.M1 and <3.0.0-M1",
			"4.0.0-M3": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"picocli": {
			"4.7.0": "Spring Boot >=2.5.0.RELEASE and <3.1.0-M1"
		},
		"open-service-broker": {
			"3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
			"3.3.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",
			"3.4.1": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",
			"3.5.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"
		}
	}
}


-------------------------------------------------------------------

https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

 

 

估计统一路线还要很长时间要走吧。一堆一堆的软件需要整合一起。

 * 维护电话:你猜你猜猜猜
 * 
 * 【】鸣惊人
 * 【】朝元老
 * 【】仙过海
 * 【】珠碎玉
 * 【】彩缤纷
 * 【】敲碎打
 * 【】人同心
 * 【】天揽月
 * 【】谷丰登
 * 【】天仙女
 * 【】味俱全

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Spring Boot中集成Nacos 2.0.3,你可以按照以下步骤进行操作: 1. 添加依赖:在你的Spring Boot项目的pom.xml文件中,添加以下依赖: ```xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> ``` 这将引入Nacos的服务发现功能。 2. 配置Nacos服务器地址:在你的项目的配置文件(如application.properties或application.yml)中,添加以下配置: ```properties spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 ``` 这将指定Nacos服务器的地址。 3. 启用服务发现:在你的Spring Boot应用程序的主类上,添加`@EnableDiscoveryClient`注解来启用服务发现功能。例如: ```java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; @SpringBootApplication @EnableDiscoveryClient public class YourApplication { public static void main(String[] args) { SpringApplication.run(YourApplication.class, args); } } ``` 4. 使用服务:在你的应用程序中,你可以使用`@Autowired`注解将Nacos的服务发现客户端注入到你的类中,并使用它来获取服务信息。例如: ```java import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class YourController { @Autowired private DiscoveryClient discoveryClient; @GetMapping("/services") public Object getAllServices() { return discoveryClient.getServices(); } } ``` 这个示例中,我们注入了`DiscoveryClient`对象,并在`getAllServices`方法中使用它来获取所有已注册的服务列表。 至此,你已经成功将Nacos 2.0.3集成到你的Spring Boot应用程序中,可以使用Nacos进行服务注册和发现。请确保Nacos服务器已经启动,并且与你的应用程序能够正常通信。

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

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值