08 2021 档案
摘要:问题描述 远程调用服务接口,获取 response 返回数据,接收的时候使用了强制转换类型,导致报了错误。 目的 需要将接收的结果 json 字符串转换成需要的类型,我这里需要转换成 map 集合: // 远程调用接口 返回 Response R r = wareFeignService.getSk
阅读全文
摘要:错误 java.lang.IllegalStateException: Failed to load ApplicationContext 原因 检查了下依赖,是因为版本不同造成的,springboot 自带依赖了 es 版本是较低的,我们只需在 pom.xml 里重写版本号即可。 <propert
阅读全文
摘要:start.spring.io 过慢 idea 默认初始化地址是: https://start.spring.io 可替换成阿里的: https://start.aliyun.com 图示
阅读全文
摘要:错误 child "elasticsearch" fails because ["hosts" is not allowed] 修改 编辑 kibana.yml 文件 ## elasticsearch.hosts: ["http://elasticsearch:9200"] elasticsearc
阅读全文
摘要:错误提示:Error in mounted hook: “ReferenceError: PubSub is not defined" 错误原因:缺少 PubSub 相关依赖 执行: 添加依赖:npm install --save pubsub-js 在 src 下的 main.js 中引用: im
阅读全文
摘要:添加依赖 <!--阿里云oss--> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>aliyun-oss-spring-boot-starter</artifactId> <version>1.0.0</version>
阅读全文
摘要:SpringBoot 跨域 错误说明 When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-
阅读全文
摘要:学习 Java Stream 方法 Stream Stream 中文称为 "流",通过将集合转换为这么一种叫做 "流" 的元素序列,通过声明试方式,能够对集合中的每个元素进行一系列并行或串行的流水线操作。 流操作 整个流操作就是一条流水线,将元素放在流水线上一个个地进行处理。其中数据源便是原
阅读全文
摘要:分布式 分布式系统是一组计算机,通过网络相互连接传递消息与通信后并协调它们的行为而形成的系统。组件之间彼此进行交互以实现一个共同的目标。 优点: 模块之间独立,各做各的事,便于扩展,复用性高 高吞吐量,某个任务完成需要一个机器运行10小时,将该任务用10台机器的分布式跑(将这个任务拆分成10个小任务
阅读全文

浙公网安备 33010602011771号