You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

53 lines
1.3 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.exception_emails}")
  25. private String fmExceptionEmails;
  26. @Value("${fm.open}")
  27. private boolean fmOpen;
  28. @Bean
  29. public boolean isFmException() {
  30. return fmException;
  31. }
  32. @Bean
  33. public String fmExceptionEmails() {
  34. return fmExceptionEmails;
  35. }
  36. @Bean
  37. public boolean isFmOpen() {
  38. return fmOpen;
  39. }
  40. public static void main(String[] args) {
  41. SpringApplication.run(UserApplication.class, args);
  42. }
  43. }