no suitable HttpMessageConverter found for response type and content type

這個問題困擾了本身一天了,網上搜索資料也搜索了一大堆,仍是沒能解決。就是說有多種狀況會出現這個異常,網上沒找到和我狀況同樣的this

直到下班後,我再解決的時候,發現了問題。有個屬性spa

    //還差多少天能夠生成報告
    private Integer needReportDays;get

    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 方法沒更新 致使了。。co

很基礎的東西,致使解決問題花費大量的精力,哎 真是千里之堤潰於蟻穴。生成

相關文章
相關標籤/搜索