SpringBoot之項目啓動提示掃描不到Mapper文件

一、報錯提示 1.No MyBatis mapper was found in '[com.iyungu.phantaci]' package. Please check your configuration. 2. 二、解決方式 在springboot的啓動類里加註解:@MapperScan("com.iyungu.phantaci.dao"),括號裏的是Mapper接口所在路徑。加上註解後,重
相關文章
相關標籤/搜索