DemoApplication.java 589 B

1234567891011121314151617181920
  1. package com.yihu;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.context.annotation.ComponentScan;
  5. import org.springframework.context.annotation.EnableAspectJAutoProxy;
  6. /**
  7. * Created by chenweida on 2017/11/3.
  8. */
  9. @SpringBootApplication
  10. @ComponentScan(basePackages={"com"})
  11. @EnableAspectJAutoProxy(proxyTargetClass=true,exposeProxy = true)
  12. public class DemoApplication {
  13. public static void main(String[] args) {
  14. SpringApplication.run(DemoApplication.class, args);
  15. }
  16. }