SmartAdminApplication.java 893 B

12345678910111213141516171819202122232425262728
  1. package net.lab1024.smartadmin;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.cache.annotation.EnableCaching;
  5. import org.springframework.context.annotation.EnableAspectJAutoProxy;
  6. import org.springframework.scheduling.annotation.EnableScheduling;
  7. /**
  8. * [ admin 项目启动类 ]
  9. *
  10. * @author yandanyang
  11. * @version 1.0
  12. * @company 1024lab.net
  13. * @copyright (c) 2019 1024lab.netInc. All rights reserved.
  14. * @date
  15. * @since JDK1.8
  16. *
  17. */
  18. @SpringBootApplication(scanBasePackages = {"net.lab1024.smartadmin", "cn.afterturn.easypoi"})
  19. @EnableCaching
  20. @EnableScheduling
  21. @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
  22. public class SmartAdminApplication {
  23. public static void main(String[] args) {
  24. SpringApplication.run(SmartAdminApplication.class, args);
  25. }
  26. }