package qiwu.chitchatbackground; //import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; @EnableAsync @EnableScheduling @SpringBootApplication //@MapperScan("qiwu.chitchatbackground.mapper") // 可以在此指定mapper包的包路径,这样就不用在每个Interface mapper上都加@Mapper public class ChitChatBackgroundApplication { public static void main(String[] args) { SpringApplication.run(ChitChatBackgroundApplication.class, args); } }