springBoot mybatis 包扫描

@MapperScan(basePackages = {"com.zscat.*.dao","com.zscat.*.*.dao"})

@EnableTransactionManagement(proxyTargetClass = true)
@SpringBootApplication
@MapperScan(basePackages = {"com.zscat.*.dao","com.zscat.*.*.dao"})
public class   ShopServiceApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(ShopServiceApplication.class);
        application.run(args);
    }
}

猜你喜欢

转载自blog.csdn.net/qq_40680190/article/details/80362100