Spring Boot 启动类MainApplication
@SpringBootApplication
@EnableTransactionManagement //添加事务管理需要的注解
@ServletComponentScan("com.chaojimanong.shop.web") //扫描过滤器
@MapperScan("com.chaojimanong.shop.dao") //扫描使用MyBatis的包
public class MainApplication {
public static void main(String[] args) {
SpringApplication.run(MainApplication.class, args);
}
}