MSApplication.java 732 B

1234567891011121314151617181920212223
  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. import java.util.Locale;
  9. @SpringBootApplication
  10. @ComponentScan(basePackages = {"net.mingsoft"})
  11. @MapperScan(basePackages={"**.dao","com.baomidou.**.mapper"})
  12. @ServletComponentScan(basePackages = {"net.mingsoft"})
  13. public class MSApplication {
  14. public static void main(String[] args) {
  15. SpringApplication.run(MSApplication.class, args);
  16. }
  17. }