Spring
[shenhonglei]
KubeSphere Member、CKA、Google认证专家(GCP)云架构师、V-M-ware 云原生技术专家、云原生社区上海站核心成员、云原生开源项目爱好者、QingCloud 容器解决方案架构师,主要负责容器类云原生相关产品及服务, 具有丰富的公有云和云管平台建设经验。致力于云原生中间件和 PaaS 产品研发和落地实践,热衷于开源技术。
展开
-
如何解决这种情况下的Could not find acceptable representation
Could not find acceptable representation解决办法很简单:事情的原因是由于其他同事由于要解决long、bigint转json丢失精度在WebMvcConfig中直接new MappingJackson2HttpMessageConverter对象,而它只支持MediaType.APPLICATION_JSON一种类型。解决办法:将丢失的mediaTypes类型都加进来。List<MediaType> mediaTypes = Arrays.asL原创 2020-06-23 14:37:44 · 4720 阅读 · 5 评论 -
快速了解SpringCloud微服务集成Micrometer+Prometheus+Grafana
快速了解SpringCloudAlibaba集成Micrometer1. 背景2.Micrometer说明2.1 什么是Micrometer ?2.1 Micrometer提供的功能&支持的监控2.1.1、主要功能。2.1.2、支持的监控系统3.如何和SpringBoot2.X集成3.1.SpringBoot添加依赖&增加监控埋点3.2.使用Docker下载和运行Prometh...原创 2020-04-29 23:54:43 · 2100 阅读 · 1 评论 -
快速了解Springboot2.x集成Micrometer
快速了解Springboot2.x集成Micrometer1. 背景2.Micrometer说明2.1 什么是Micrometer ?2.1 Micrometer提供的功能&支持的监控2.1.1、主要功能。2.1.2、支持的监控系统3.如何和SpringBoot2.X集成3.1.SpringBoot添加依赖&增加监控埋点3.2.使用Docker下载和运行Prometheus3....原创 2020-04-29 23:47:24 · 3676 阅读 · 0 评论 -
Springboot或者SpringCloud 的Could not find acceptable representation的问题分析-源码debug
Springboot执行器Actuator&prometheus背景定位问题异常信息解决方案背景spring.cloud.alibaba.版本2.2.1.RELEAS在用Micrometer 集成 Prometheus监控的时候,遇到prometheus的数据无法解析,报错原因是:supportedMediaTypes支持的类型不存在。定位问题1.根据错误信息查看:org.spr...原创 2020-04-29 01:00:19 · 3967 阅读 · 2 评论 -
Spring Cloud OpenFeign
Spring Cloud OpenFeignDeclarative REST Client: Feign1.1. How to Include Feign1.2. Overriding Feign Defaults1.3. Creating Feign Clients Manually1.4. Feign Hystrix Support1.5. Feign Hystrix Fallbacks1.6...原创 2019-10-17 13:00:15 · 621 阅读 · 0 评论 -
A bean with that name has already been defined in DataSourceConfiguration$Hikari.class overriding无效
The bean ‘dataSource’, defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfigurationHikari.class],couldnotberegistered.Abeanwiththatnam...原创 2019-08-21 17:06:05 · 3297 阅读 · 0 评论