MSApplication.java 698 B

12345678910111213141516171819202122
  1. package net.mingsoft;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.boot.web.servlet.ServletComponentScan;
  6. import org.springframework.context.annotation.ComponentScan;
  7. import springfox.documentation.swagger2.annotations.EnableSwagger2;
  8. @SpringBootApplication
  9. @ComponentScan(basePackages = {"net.mingsoft"})
  10. @MapperScan(basePackages={"**.dao"})
  11. @ServletComponentScan(basePackages = {"net.mingsoft"})
  12. @EnableSwagger2
  13. public class MSApplication {
  14. public static void main(String[] args) {
  15. SpringApplication.run(MSApplication.class, args);
  16. }
  17. }