| | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.cloud.stream.annotation.EnableBinding; |
| | | import org.springframework.cloud.stream.annotation.StreamListener; |
| | | import org.springframework.cloud.stream.messaging.Sink; |
| | | import org.springframework.cloud.stream.messaging.Source; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | |
| | |
| | | @SpringBootApplication |
| | | @EnableScheduling//开启定时任务 |
| | | @EnableTransactionManagement//开启事务 |
| | | @EnableBinding({ Source.class, Sink.class }) |
| | | public class RuoYiIntegrationApplication { |
| | | public static void main(String[] args) { |
| | | try{ |
| | | SpringApplication.run(RuoYiIntegrationApplication.class, args); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | SpringApplication.run(RuoYiIntegrationApplication.class, args); |
| | | System.out.println("(♥◠‿◠)ノ゙ 硬件集成模块启动成功 ლ(´ڡ`ლ)゙ \n" + |
| | | " .-------. ____ __ \n" + |
| | | " | _ _ \\ \\ \\ / / \n" + |