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.

63 lines
1.4 KiB

  1. package com.iformall;
  2. import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
  3. import org.mybatis.spring.annotation.MapperScan;
  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 springfox.documentation.swagger2.annotations.EnableSwagger2;
  9. /**
  10. * @author stormeye
  11. * @date 2019-01-14
  12. */
  13. @SpringBootApplication
  14. @MapperScan("com.iformall.mapper")
  15. @EnableSwagger2
  16. @EnableEncryptableProperties
  17. public class WechatOpenApplication {
  18. @Value("${fm.exception}")
  19. private boolean fmException;
  20. @Value("${fm.exception_emails}")
  21. private String fmExceptionEmails;
  22. @Value("${fm.audit_emails}")
  23. private String fmAuditEmails;
  24. @Value("${fm.deploy}")
  25. private Integer fmDeploy;
  26. @Value("${fm.upload_dir}")
  27. private String uploadDir;
  28. @Bean
  29. public boolean isFmException() {
  30. return fmException;
  31. }
  32. @Bean
  33. public String fmExceptionEmails() {
  34. return fmExceptionEmails;
  35. }
  36. @Bean
  37. public String fmAuditEmails() {
  38. return fmAuditEmails;
  39. }
  40. @Bean
  41. public Integer getFmDeploy() { return fmDeploy; }
  42. @Bean
  43. public String fmUploadDir() {
  44. return uploadDir;
  45. }
  46. public static void main(String[] args) {
  47. SpringApplication.run(WechatOpenApplication.class, args);
  48. }
  49. }