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);
    }
}

 

你可能感兴趣的:(springBoot,mybatis)