【Error]--Invalid bound statement (not found)

  1. resource下的目录不能像包一样打点,要用斜杠“/”
  2. 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.
  3. Folders must be created one by one. cannot mapper.xxx
  4. The mapper.xml under the resource file should be consistent with the package path of the mapper java class in the dto layer
  5. The namespace in mapper.xml is inconsistent with the actual mapper file
  6. The method name in the mapper interface is inconsistent with the id tag in mapper.xml

ref

Guess you like

Origin blog.csdn.net/JemeryShen/article/details/129834403