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.
 
 
 
 
 

71 lines
1.7 KiB

  1. package com.iformall;
  2. import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
  3. import org.mybatis.spring.annotation.MapperScan;
  4. import org.rocketmq.starter.annotation.EnableRocketMQ;
  5. import org.springframework.beans.factory.annotation.Value;
  6. import org.springframework.boot.SpringApplication;
  7. import org.springframework.boot.autoconfigure.SpringBootApplication;
  8. import org.springframework.context.annotation.Bean;
  9. import org.springframework.context.annotation.EnableAspectJAutoProxy;
  10. import org.springframework.scheduling.annotation.EnableAsync;
  11. import springfox.documentation.swagger2.annotations.EnableSwagger2;
  12. /**
  13. * @author chenkx
  14. * @date 2017-12-26
  15. */
  16. @SpringBootApplication
  17. @MapperScan(basePackages = {"com.iformall.mapper"})
  18. @EnableSwagger2
  19. @EnableEncryptableProperties
  20. @EnableAsync
  21. @EnableRocketMQ
  22. @EnableAspectJAutoProxy(exposeProxy = true)
  23. public class CallbackApplication {
  24. @Value("${fm.exception}")
  25. private boolean fmException;
  26. @Value("${fm.exception_emails}")
  27. private String fmExceptionEmails;
  28. @Value("${fm.open}")
  29. private boolean fmOpen;
  30. @Value("${fm.upload_dir}")
  31. private String uploadDir;
  32. @Value("${fm.videoType}")
  33. private String videoType;
  34. @Bean
  35. public boolean isFmException() {
  36. return fmException;
  37. }
  38. @Bean
  39. public String fmExceptionEmails() {
  40. return fmExceptionEmails;
  41. }
  42. @Bean
  43. public boolean isFmOpen() {
  44. return fmOpen;
  45. }
  46. @Bean
  47. public String fmUploadDir() {
  48. return uploadDir;
  49. }
  50. @Bean
  51. public String videoType() {
  52. return videoType;
  53. }
  54. public static void main(String[] args) {
  55. SpringApplication.run(CallbackApplication.class, args);
  56. }
  57. }