原创 your MySQL server version for the right syntax to use near '(0) NOT NULL, `endTime` datetime(0) NO

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

原创 JavaWeb項目登錄報Session Error錯誤

JavaWeb項目登錄報Session Error錯誤 解決辦法: 加入以下代碼到web.xml中: <init-param> <param-name>crossDomainSessionSecurity</param-na

原创 MySQL關於between and 和 大於等於 小於等於 你所會忽略的細節

MySQL關於between and 和 大於等於>= 小於等於<=,你所會忽略的細節 其實這兩種SQL用法在大多數情況下都是一樣的,比如: SELECT * FROM employees WHERE employee_id

原创 Java控制檯報錯:非法字符\ufeff 需要class interface 或enum,啓動失敗錯誤

Java控制檯報錯:非法字符\ufeff 需要class interface 或enum,啓動失敗錯誤 今天啓動一個項目突然出現如下錯誤: 於是,找了一下原因,原來是因爲其他文本工具或者調開發工具在修改 UTF-8 文件時在文件

原创 java.sql.BatchUpdateException: Data truncation: Incorrect datetime value: for column addtime at

java.sql.BatchUpdateException: Data truncation: Incorrect datetime value: for column addtime at 最常見原因: 不要先去調代碼,遇到這個

原创 Eclipse、MyEclipse或者idea安裝lombok插件

Eclipse、Myeclipse或者idea安裝lombok插件 Lombok能以簡單的註解形式來簡化java代碼,提高開發人員的開發效率。例如開發中經常需要寫的javabean,都需要花時間去添加相應的getter/sette

原创 解決:EL1007E: Property or field xxxxx cannot be found on null

解決:EL1007E: Property or field ‘xxxxx’ cannot be found on null Springboot項目的前端的thymleaf報這樣的錯 原因: ①後臺傳到前端的對象裏沒有xxxxx屬

原创 ERROR 1062(23000):Duplicate entry %-root for key PRIMARY

ERROR 1062(23000):Duplicate entry %-root for key PRIMARY 出現這問題,雖然也可以繼續運行下去,但是避免以後出現重大問題,最好還是解決一下。 該問題原因是MySQL數據庫 名字

原创 MySQL數據庫報錯:The user specified as a definer(test@%) does not exist

①數據庫添加數據時報錯如下: The user specified as a definer ('test'@'%') does not exist ②原因: 報錯原因主要是該用戶沒有權限訪問視圖 ③解決辦法: 如果你數據庫還沒

原创 $is not defined和jQuery is not defined控制檯報錯

$is not defined和jQuery is not defined控制檯報錯 今天有個實習生寫了代碼,F12控制檯報這樣的錯,結果我看了一下,就發現了問題,原來引入jQuery的代碼寫在代碼的最下面,但是因爲頁面加載順序是

原创 MySQL賬號密碼正確,JavaEE項目SSM Access denied for user 'root'@'localhost' (using password: YES)] with root

MySQL賬號密碼正確,JavaEE項目SSM Access denied for user ‘root’@‘localhost’ (using password: YES)] with root 今天遇到一個特別奇怪的事情,SS

原创 Eclipse部署Javaweb項目到Tomcat根目錄路徑訪問localhost:8080訪問Context root項目路徑

Eclipse部署Javaweb項目到Tomcat根目錄路徑訪問localhost:8080訪問Content root 今天又用了一下Eclipse,部署一個項目時,這個項目的資源與請求,都得通過localhost:8080訪問

原创 easyui組件中文亂碼、easyui-lang-zh_CN.js亂碼、前端頁面框架亂碼

easyui組件亂碼easyui-lang-zh_CN.js亂碼前端頁面框架亂碼 又是一個亂碼問題,easyui框架的下一頁、上一頁、確定、取消等等這種組件中的中文亂碼,開始完全無頭緒,因爲Tomcat、MySQL、過濾器、JSP

原创 java.sql.SQLException Unknown initial character set index 45 received from server. Initial client

java.sql.SQLException: Unknown initial character set index ‘45’ received from server. Initial client character set

原创 create connection SQLException errorCode 0, state 20000,Access denied for user 'xxxxx'@'localhost'

create connection SQLException errorCode 0, state 20000,Access denied for user ‘xxxxx’@‘localhost’ 運行一個SSM框架搭建的項目,連