SpringBoot加這個註解@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
會 關閉特定的自動配置,導致mapper文件不能注入系統,會報下面的錯誤信息:
Description:
Field userPOMapper in com.project.manage.service.impl.LoginServiceImpl required a bean of type 'com.project.manage.mapper.UserPOMapper' that could not be found.
Action:
Consider defining a bean of type 'com.project.manage.mapper.UserPOMapper' in your configuration.