springboot无法识别sql语句
时间: 2023-10-13 09:00:08 浏览: 100
Spring Boot连接MySQL数据库
引用中提到了使用Spring Boot进行Web开发的依赖配置。而在引用中提到,在调试程序时,经常会遇到SQL语句不正确而报错的情况。为了能够在控制台上显示执行中的SQL语句,可以进行一些简单的配置。根据引用的描述,在application.properties文件中添加一句"mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl"即可。这样配置后,当使用Spring Boot开发时,就可以在控制台上看到SQL语句的输出了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [SpringBoot打印系统执行的sql语句以及日志的配置](https://blog.csdn.net/qq_45722699/article/details/126782288)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [spring boot项目 在控制台显示sql语句](https://blog.csdn.net/guoyp2126/article/details/124412537)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [springboot项目中sql语句出错排除错误方法](https://blog.csdn.net/m0_54765221/article/details/123497514)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文