启动类配置重点
这样启动springboot项目的时候就不会去连接数据库 ,不然会启动报错
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class,JpaRepositoriesAutoConfiguration.class})
@MapperScan(basePackages = {“com.example.demo.*”,”com.example.demo.mapper”})
public class SmartCommunityBootApplication {
public static void main(String[] args) {
//DBIdentifier.setProjectCode(“5642”);
SpringApplication.run(SmartCommunityBootApplication.class, args);
}
}