Stepping on the pit series "Nine" Unable to get the table name corresponding to the entity class xxx

Don’t say much, just explain the reason

Similar to @MapperScan(basePackages = "com.hyxiao.user.mapper")

The import package of the start-up mapper scan annotation is correct

import tk.mybatis.spring.annotation.MapperScan;	//	正确

Instead of this

import org.mybatis.spring.annotation.MapperScan;//	错误

Dismissal. . .

Guess you like

Origin blog.csdn.net/hyx1249273846/article/details/108700917