原创 java異常:前言中不允許有內容。
報錯:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resour
原创 異常:nested exception is java.sql.SQLException: Column count doesn‘t match value count at row 1
錯誤信息:org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [insert into emp values(null,'
原创 關於:java.sql.SQLException: Too many parameters: expected 0, was given 6 Query
原因是我在寫一個向數據庫添加成員的接口實現類方法的時候忘記寫:values(?,?,?,?,?,?)
原创 eclipse運行web工程時報錯
錯誤信息:Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may al
原创 給數據庫添加日期類型的數據報錯
報錯信息:The method setDate(int, java.sql.Date) in the type PreparedStatement is not applicable for the arguments (int, jav
原创 啓動 tomcat服務器報:The JRE_HOME environment variable is not defined correctly This environment
可以在你點擊startup.bat的文件路徑上方輸入CMD,然後輸入startup。 如果顯示你的JRE_HOME文件路徑不對 解決方法:添加你的JDK中的jre文件目錄到環境變量中 添加後再此點擊startup.bat或者在命令行中
原创 java 模塊引用運行報Error:Kotlin
具體信息: Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 're
原创 單元測試:java.lang.Exception: Method bufferedStream should have no parameters
單元測試遇見錯誤信息: java.lang.Exception: Method bufferedStream should have no parameters 其實是因爲你的其他方法在調用你的xxx方法,而你的xxx上的@Test 的
原创 IDEA 運行單元測試所遇到的問題及解決方法
輸入@Test後顯示還需要導入JUNIT到類環境變量裏。 我們點擊Add “JUnit4"to classpath然後到下一步 勾選Download to 選到你idea的安裝目錄下的lib文件夾 點擊OK 然後測試