AccountApplication.java 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.ozs.account;
  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.builder.SpringApplicationBuilder;
  6. import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
  7. import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
  8. import org.springframework.cloud.openfeign.EnableFeignClients;
  9. import org.springframework.transaction.annotation.EnableTransactionManagement;
  10. /**
  11. * @ClassName: AccountManagerApplication
  12. * @Description: 账号管理模块启动类
  13. * @author: IF
  14. * @date: 2018年6月8日 下午6:07:33
  15. */
  16. @MapperScan("com.ozs.account.mapper")
  17. @EnableEurekaClient
  18. @EnableFeignClients
  19. @EnableTransactionManagement
  20. @SpringBootApplication
  21. public class AccountApplication extends SpringBootServletInitializer {
  22. @Override
  23. protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
  24. return builder.sources(AccountApplication.class);
  25. }
  26. public static void main(String[] args) {
  27. SpringApplication.run(AccountApplication.class, args);
  28. }
  29. }