Springboot can't find the method of mapper

springboot cannot find the method of mapper

application

mapper

when loading mapper What"s wrong with

?

Mar.06,2021

Brothers can check whether there is a login method in your EmployeeMapper, and then check whether there is


in the configuration of XML.

where do I put the xml file?
idea does not load / package the xml under src/main/java by default.
you can put the xml file into resources, or modify the directory specified by resources
resources {

.
        srcDirs = ['src/main/java', 'src/main/resources']
    }

first check to see if the path in MapperScan is really written correctly. @ Mapper and @ MapperScan can be configured together. Do not repeat the configuration. Finally, try to remove 'basePackages=''

Menu