1.nacos服务注册不上服务
开发远程服务器端口,多加一个偏移量,比如开发nacos的端口是8848,需要再开放一个9848端口
2.由于springcloud是基于springboot加载的,所以需要引入依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.7.2</version> </dependency>