springBootmybatis 包扫描

xiaoxiao2021-02-28  45

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

 

转载请注明原文地址: https://www.6miu.com/read-2624612.html

最新回复(0)