springboot中mybatis中配置文件方式整合错误——Invalid bound statement (not found):

因为springboot中没有mybatis的自动配置的配置,所以我们引入mybatisStart的时候一些关于mybatis的springboot中的配置我们还是需要注意的。
我们一定要在yml配置文件中配置mybatis的xml文件的地址信息。
如果不写明则会找不到相应的xml文件从而不能找到相应的sql语句而报错。
springboot中mybatis中配置文件方式整合错误——Invalid bound statement (not found):报这个错误还有可能是自己的xml文件中有错。
本次错误是没有在配置文件中添加xml文件的地址信息。所以我们需要指定xml文件的地址信息。这样我们就能正确找到xml文件了。
springboot中mybatis中配置文件方式整合错误——Invalid bound statement (not found):