1. 問題:JSP頁面不論怎樣都有一個>符號
原因:在導入java其他包的時候多打了一個>沒有注意到,我一直在尋找body之間是否存在什麼錯誤,沒有想到body之外也會顯示在jsp頁面中。
解決方法:重新建了一個空jsp代碼與問題代碼對比排查。
2. 問題:頁面出現The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
原因:跳轉的地址多加了文件後綴.java
3.問題:mysql數據庫使用新的驅動連接字符串問題。
如果你想表達下面的語句
jdbcUrl=jdbc:mysql://localhost:3306/spring?serverTimezone=UTC&characterEncoding=utf-8
則應把&改爲&:
jdbcUrl=jdbc:mysql://localhost:3306/spring?serverTimezone=UTC&characterEncoding=utf-8