# springCloud-alibaba **Repository Path**: xmnzp/spring-cloud-alibaba ## Basic Information - **Project Name**: springCloud-alibaba - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-12-11 - **Last Updated**: 2024-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### springCloud + Alibaba #### 注册中心 + eureka(AP) + zookeeper(CP) + consul (CP) `CAP`概念 - c: Consistent 强一致性 - A:Availability(可用性) - P:Partition tolerance(分区容错性) #### openFeign 使用Feign服务服务之间调用出现报错 `feign.FeignException$MethodNotAllowed: status 405 reading PaymentService#get` 检查步骤 + 接口的请求方法是否一致 + 请求参数是否添加映射(这个很重要) + 请求方式是否正确 #### consul 安装和常见错误 [安装和错误记录](https://juejin.cn/user/1732486058751982) #### 中央配置文件读取 - 使用rabbitMQ作为中间bus实现消息广播,解决多个服务时候,自动刷新获取所有服务的最新远程配置信息 #### `nacos` 启动问题 1. `nacos` 在`window`系统上通过点击`startup.cmd`的方式启动,自动闪退,访问`localhost:8848/nacos` 拒绝访问 + 检查日志文件 `/logs/start.out`发现报错 ```log org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat ``` 修改启动方式为 ```cmd # 单个启动的方式 startup.cmd -m standalone ``` 2. `nacos`在`linux`启动,日志显示成功,但是访问地址拒绝访问 解决方式同上 修改启动方式为单例 ```cmd ./startup.sh -m standalone ```