您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

45 行
1.1 KiB

  1. package com.iformall;
  2. import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
  3. import org.rocketmq.starter.annotation.EnableRocketMQ;
  4. import org.springframework.beans.factory.annotation.Value;
  5. import org.springframework.boot.SpringApplication;
  6. import org.springframework.boot.autoconfigure.SpringBootApplication;
  7. import org.springframework.context.annotation.Bean;
  8. import org.springframework.scheduling.annotation.EnableAsync;
  9. import springfox.documentation.swagger2.annotations.EnableSwagger2;
  10. import tk.mybatis.spring.annotation.MapperScan;
  11. /**
  12. * @author chenkx
  13. * @date 2017-12-26
  14. */
  15. @SpringBootApplication
  16. @MapperScan(basePackages = {"com.iformall.mapper"})
  17. @EnableSwagger2
  18. @EnableEncryptableProperties
  19. @EnableAsync
  20. @EnableRocketMQ
  21. public class UserApplication {
  22. @Value("${fm.exception}")
  23. private boolean fmException;
  24. @Value("${fm.open}")
  25. private boolean fmOpen;
  26. @Bean
  27. public boolean isFmException() {
  28. return fmException;
  29. }
  30. @Bean
  31. public boolean isFmOpen() {
  32. return fmOpen;
  33. }
  34. public static void main(String[] args) {
  35. SpringApplication.run(UserApplication.class, args);
  36. }
  37. }