出现错误Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
话不多说,直接上图(可能是这个原因,小编是遇见这个bug了)
具体看上面的描述:时mapper还是service??
解决办法:
(原因,springboot启动时,没有扫描到你的mapper)
方法一:在核心控制类内添加上你的mapper包地址
(原因没有扫描到service层)
方法二:没有添加service注解
就可以解决上述问题