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.
 
 
 
 
 

50 lines
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 tk.mybatis.spring.annotation.MapperScan;
  9. /**
  10. * @author chenkx
  11. * @date 2017-12-26
  12. */
  13. @SpringBootApplication
  14. @MapperScan(basePackages = {"com.iformall.mapper"})
  15. @EnableEncryptableProperties
  16. @EnableRocketMQ
  17. public class BApplication {
  18. @Value("${fm.exception}")
  19. private boolean fmException;
  20. @Value("${fm.exception_emails}")
  21. private String fmExceptionEmails;
  22. @Value("${fm.open}")
  23. private boolean fmOpen;
  24. @Bean
  25. public boolean isFmException() {
  26. return fmException;
  27. }
  28. @Bean
  29. public String fmExceptionEmails() {
  30. return fmExceptionEmails;
  31. }
  32. @Bean
  33. public boolean isFmOpen() {
  34. return fmOpen;
  35. }
  36. public static void main(String[] args) {
  37. SpringApplication.run(BApplication.class, args);
  38. }
  39. }