@Slf4j
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableHystrixDashboard
@EnableFeignClients
@MapperScan("com.enmonster.platform.wmc.domain.mapper")
public class WmcApplication {
public static void main(String[] args) {
SpringApplication.run(WmcApplication.class, args);
}
}
@Override
@Transactional(rollbackFor = Exception.class)
public void doTransportWarningBusiness(TaskExecutionOrder lastTask) {....}
删除启动类中的:DataSourceTransactionManagerAutoConfiguration.class