resource下的目录不能像包一样打点,要用斜杠“/”
- The @MapperScan(basePackages = {“com.rstech.user.server.mapper”}) annotation is added to the startup class, and mapper-locations: classpath*:mapper/*Mapper.xml is repeated in the configuration class, and then The path corresponding to mapper xml has changed, and then delete the @MapperScan annotation on the startup class.
- Folders must be created one by one. cannot mapper.xxx
- The mapper.xml under the resource file should be consistent with the package path of the mapper java class in the dto layer
- The namespace in mapper.xml is inconsistent with the actual mapper file
- The method name in the mapper interface is inconsistent with the id tag in mapper.xml
【Error]--Invalid bound statement (not found)
Guess you like
Origin blog.csdn.net/JemeryShen/article/details/129834403
Ranking