首页 \ 全部问答 \ springboot多数据源配置问题

  253150284@qq.com 课程提问

springboot多数据源配置问题

1. 启动报错信息 Field userMapper1 in com.rd.springboot.service.UserService1 required a bean of type 'com.rd.springboot.mapper.UserMapper1' that could not be found. 2. 启动类注解 @EnableAutoConfiguration @SpringBootApplication @ComponentScan(basePackages = {"com.rd.springboot"}) @MapperScan(basePackages = {"com.rd.springboot.mapper.UserMapper1","com.rd.springboot.mapper.UserMapper2"})
 (2)  (0)
2018-03-29 17:19
Powered by蚂蚁课堂