zoukankan      html  css  js  c++  java
  • no suitable HttpMessageConverter found for response type and content type

    这个问题困扰了自己一天了,网上搜索资料也搜索了一大堆,还是没能解决。就是说有多种情况会出现这个异常,网上没找到和我情况一样的

    直到下班后,我再解决的时候,发现了问题。有个属性

        //还差多少天可以生成报告
        private Integer needReportDays;

        public Integer getNeedReportDays() {
            return needReportDays;
        }
        public void setNeedReportDays(int needReportDays) {
            this.needReportDays = needReportDays;
        }

    改为

        public Integer getNeedReportDays() {
            return needReportDays;
        }
        public void setNeedReportDays(Integer needReportDays) {
            this.needReportDays = needReportDays;
        }

    就OK了    

    就是属性类型int更改Integer 后 get set 方法没更新 导致了。。

    很基础的东西,导致解决问题花费大量的精力,哎 真是千里之堤溃于蚁穴。

  • 相关阅读:
    卡牌配对
    SNOI2017 礼物
    【BZOJ2893】征服王
    景中人
    钦点
    杨柳
    兼容IE与firefox、chrome的css 线性渐变(linear-gradient)
    使用C# DES解密java DES加密的字符串
    jQuery插件autoComplete使用
    hadoop SQL使用
  • 原文地址:https://www.cnblogs.com/yousen/p/6297796.html
Copyright © 2011-2022 走看看