springMVC項目Controller中Invalid mime type錯誤

在學習寫SpringMVC項目的過程中,在service層裏的controller裏面有一個函數,需要返回json類型的數據。 於是在@RequestMapping中加入了produces參數,並添加了@ResponseBody註解。如下圖所示: 但是服務器啓動後,Spring會報錯: Invocation of init method failed; nested exception is or
相關文章
相關標籤/搜索