原创 MySQL 一條簡單查詢也報錯語法錯誤

看看你的表是不是保留關鍵字。。。。。  

原创 Mybatis多對多隻能查詢出一條數據

1.將表的id修改不一樣。 2.給字段起別名

原创 ajax url請求路徑問題

$.ajax({    type:"post",    url:"/getRooms",    async:true,    contentType:"json",    dataType:"json",    contentType:

原创 ssm連接數據庫問題

可能解決該問題的辦法有: 1.檢查properties的參數是否寫錯 2.檢查mysql連接驅動是否和安裝的mysql版本匹配  

原创 Line 1 in XML document from URL [file:/D:/tomcat/apache-tomcat-9.0.10/lib/] is invalid;

可能是web.xml裏面 <init-param> <param-name>contextConfigLocation</param-name> <param-value></param-value> </init-pa

原创 ModelAndView配置返回視圖無效

  發現是由於ModelAndView引用錯誤導致,應該引用org.springframework.web.servlet.ModelAndView類,實際引用了import org.springframework.web.portlet

原创 SpringMVC返回JSON提示:No converter found for return value of type

1.在 dispatcher-servlet .xml 中啓動註解  <!--啓動註解--> <mvc:annotation-driven/> 2.導入jackson.jar包 如果你是 idea 那導包非常坑,,,,找了我一天的bu