使用通用mapper時報錯,tk.mybatis.mapper.MapperException:沒法獲取實體類xxx對應的表名!

在springboot項目中使用通用mapper致使報錯:tk.mybatis.mapper.MapperException:沒法獲取實體類xxx對應的表名!spring

緣由:springboot

@MapperScan註解要導入itk.mybatis.spring.annotation.MapperScan;
不要使用org.mybaties.spring.annotation.MapperScan。
相關文章
相關標籤/搜索