The difference between these two annotations is
1. @Mapper
After use , there is no need to set the scan address in the spring configuration. Through the namespace attribute in mapper.xml corresponding to the relevant mapper class, spring will dynamically generate the Bean and inject it into the ServiceImpl.
2. @Repository
You need to configure the scan package address in Spring, and then generate the dao layer bean, which is then injected into the ServiceImpl