mybatisplus---接口返回的数据无端报错 java.sql.SQLSyntaxErrorException

阅读 74

2022-03-22

mybatisplus Mapper.xml的问题

代码完全没有问题

报错如下这种的,其实看不出来什么情况

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corres

解决办法:
在mapper.xml中用了desc的字段,这个字段为关键词不能使用,需要在数据库中换为别的即可。

精彩评论(0)

0 0 举报