springcloud坑之 org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 null

今天用springcloud玩了一个微服务,一切都准备就绪,当我用消费方调用生产方的数据时,在消费方的控制台上出现了以下错误信息:

org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 null

于是我就按照这个信息在网上找解决方法,但都没有找到。最后我在生产方的控制台上发现了如下错误:

java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

所以我就按照这个错误信息,在我的数据源的url后面加上了
?characterEncoding=utf8&serverTimezone=UTC
之前是:

spring:
datasource:
url: jdbc:mysql:///mybatis1

加上之后:

spring:
datasource:
url: jdbc:mysql:///mybatis1?characterEncoding=utf8&serverTimezone=UTC

最后解决了这个问题!

springcloud坑之 org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 null相关推荐

  1. org.springframework.web.client.HttpServerErrorException

    错误场景:lz在使用restTemplete发起post请求时,由于对HttpEntity参数类型不太了解,报此异常. 使用post请求,当contentType为application/json时: ...

  2. 学习记录报错Consider defining a bean of type ‘org.springframework.web.client.RestTemplate‘ in your configu

    springboot启动就报错 信息如下 Field restTemplate in com.atguigu.springcloud.controller.OrderController requir ...

  3. org.springframework.web.client.ResourceAccessException: I/O error on POST request for ************

    org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://l ...

  4. Caused by: org.springframework.web.client.RestClientException: Error while extracting response for t

    spring cloud alibaba 三方请求收到处理成功,但是自己接收失败 feign.codec.DecodeException: Error while extracting respons ...

  5. org.springframework.web.client.ResourceAccessException: I/O error on GET request for http://localho

    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://lo ...

  6. org.springframework.web.client.RestClientException: Could not extract response

    通过feign调用其它微服务(生产者)的返回值类型与接收类型(消费者)不一致,将两者改成相同的对象类型即可.

  7. jar包启动调用外系统文件上传,无法生成文件,报org.springframework.web.client. ResourceAccessException: I/0 error on POST

    今日小编遇到个问题,是服务器调用外系统进行文件传输上传,但是对方系统的代码在我们的底层jar包中,代码有段是要生成临时文件夹存文件,我们是jar报正常启动,但是报如下错: 原来我们的启动命令是: no ...

  8. java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener

    一:如果出现下面的错误信息,如果你的项目是Maven结构的,那么一般都是你的项目的Maven Dependencies没有添加到项目的编译路径下: 五月 10, 2015 6:23:18 下午 org ...

  9. org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory---springcloud工作笔记162

    去搜索吧: 可以搜到网上都说: java.lang.ClassNotFoundException: org.springframework.cloud.client.loadbalancer.Load ...

最新文章

  1. SAP FI/CO 知识 浓缩版
  2. 趣说API HTTP 状态码的使用
  3. mysql 表大小_MySQL查看数据库表容量大小的方法示例
  4. How to determine what causes a particular wait type
  5. 数字密码输入框对输入内容进行隐藏
  6. mysql 多行 连续_mysql多表连续查询的问题
  7. zabbix 接触这段时间的感悟
  8. simple log test
  9. SSIS包生成注意事项
  10. python getopt的用法
  11. 网络安全保障体系有哪些?网络安全保障需要如何实施?
  12. 2020年全球及中国电源管理芯片(PMIC)行业发展现状及市场竞争格局分析,全球市场集中,德州仪器市占第一「图」
  13. vue加d3js实现3d饼图
  14. 学计算机考公务员可以做什么的,学计算机的考公务员将来干什么啊
  15. 【IOS】获取iOS设备唯一标识的演进UDID, MAC Address,UUID,IDFA,IDFV,OpenUDID
  16. C++知识之如何利用双缓冲避免在HDC上画图时图像闪烁
  17. 百度糯米 android,百度糯米安卓版|百度糯米for android官方手机版 6.7.1 - 系统天堂...
  18. 北京大学MOOC 程序设计与算法(三)C++面向对象程序设计 期末考试
  19. vue实现input输入模糊查询(三种方式)
  20. 企业域名是什么?域名代表网站流量

热门文章

  1. 创造性思维的四阶段论
  2. 随机产生十六进制的颜色
  3. 小学一年级语文考试试题【23】
  4. Mysql数据库基础语句总结
  5. 如何调动员工情绪提高员工的积极性
  6. Python实现人脸识别功能,face_recognition的使用 | 机器学习
  7. mysql清空数据库表
  8. 删除列级完整性约束_MySQL中的数据完整性约束
  9. 中山大学人工智能神经网络学习文本情感分类训练
  10. GNN学习资料分类整理——(持续更新)