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=''

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a8a3-2c24d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a8a3-2c24d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?