在service层报错Invalid bound statement (not found)

1、如果没有在server层报错Invalid bound statement (not found)
请参考这位大佬总结:[添加链接描述](https://blog.csdn.net/weixin_44695793/article/details/107752054?ops_request_misc=&request_id=&biz_id=102&utm_term=%20bound%20statement%20%28not%20found%29&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-2-107752054.142%5Ev86%5Econtrol,239%5Ev2%5Einsert_chatgpt&spm=1018.2226.3001.4187)

2、如果是在server层报错的,可能是@MapperScan扫描太大,导致service也被包装了

@MapperScan("com.hzbank.springbootlearn.mapper")

把MapperScan具体到mapper文件夹下

你可能感兴趣的:(spring,boot)