PackerServiceApplication.java 833 B

12345678910111213141516171819202122232425262728
  1. package com.hw.admin;
  2. import com.hw.admin.system.listener.FileMonitor;
  3. import org.mybatis.spring.annotation.MapperScan;
  4. import org.springframework.boot.SpringApplication;
  5. import org.springframework.boot.autoconfigure.SpringBootApplication;
  6. import org.springframework.context.annotation.Bean;
  7. import org.springframework.scheduling.annotation.EnableScheduling;
  8. /**
  9. * 系统模块
  10. *
  11. * @author Administrator
  12. */
  13. @SpringBootApplication
  14. @MapperScan("com.hw.admin.**.mapper")
  15. @EnableScheduling
  16. public class PackerServiceApplication {
  17. public static void main(String[] args) {
  18. SpringApplication.run(PackerServiceApplication.class, args);
  19. }
  20. @Bean
  21. public FileMonitor fileMonitor() {
  22. return new FileMonitor("D:\\project\\delivery_project\\远程制药\\后台\\ycpharmacy_excel_service\\excel\\");
  23. }
  24. }