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 方法没更新 导致了。。

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

  • 相关阅读:
    Binary search tree
    搜索二叉树
    windows最基本命令行
    sublime package
    二叉树的层次遍历和其深度
    二叉树后序遍历
    PopupWindow的使用
    android之ViewPager的使用
    android部分开发摘要
    android4.0以后要求网络请求必须发生在子线程中
  • 原文地址:https://www.cnblogs.com/yousen/p/6297796.html
Copyright © 2011-2022 走看看