java
SpringBoot使用默認的日志logback(2)—自定義配置+控制臺輸出sql語句
上一篇文章中簡單介紹了springboot通過系統配置的方式配置日志: SpringBoot使用默認 閱讀更多…
java
spring boot的application.yml和application-dev.yml
開發SpringBoot應用的時候,通常程序需要在測試環境測試成功后才會上線到生產環境。而測試環境和 閱讀更多…
常見報錯
Field studentsMapper in site.longkui.app.service.StudentsService required a bean of type ‘site.longkui.app.mapper.StudentsMapper’ that could not be found.
某日新創建spring boot項目后啟動項目報錯: 這個錯誤是因為我們沒有加上MapperScan 閱讀更多…
常見報錯
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON:
調試springboot項目,返回數據的時候報錯: Resolved [org.springfram 閱讀更多…
常見報錯
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [students/getList], template might not exist or might not be accessible by any of the configured Template Resolvers
創建調試springboot項目后,然后訪問一個接口,控制臺開始報錯: 這個問題的主要原因是Cont 閱讀更多…
常見報錯
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
某日新創建一個spring boot項目,添加完依賴以后運行項目開始報錯: 原因1:沒有配置文件 這 閱讀更多…
常見報錯 開發與創造
Loading class `com.mysql.jdbc.Driver’. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver’.
某日構建springboot項目時,報的錯: 項目的配置文件是下面這樣: 根據上面提示這個錯誤是co 閱讀更多…
常見報錯
Project ‘org.springframework.boot:spring-boot-starter-parent:2.7.7’ not found
某日構建springboot項目,構建完畢以后發現下面這樣 然后打開pom文件,發現springbo 閱讀更多…