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.
|
- package com.iformall;
-
- import org.mybatis.spring.annotation.MapperScan;
- import org.rocketmq.starter.annotation.EnableRocketMQ;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.EnableAspectJAutoProxy;
-
- import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
- import org.springframework.scheduling.annotation.EnableAsync;
-
- /**
- * @author chenkx
- * @date 2017-12-26
- */
- @SpringBootApplication
- @MapperScan(basePackages = {"com.iformall.mapper"})
- @EnableEncryptableProperties
- @EnableAsync
- @EnableRocketMQ
- @EnableAspectJAutoProxy(exposeProxy = true)
- public class CApplication {
-
- @Value("${fm.exception}")
- private boolean fmException;
-
- @Value("${fm.exception_emails}")
- private String fmExceptionEmails;
-
- @Value("${fm.open}")
- private boolean fmOpen;
-
- @Value("${fm.upload_dir}")
- private String uploadDir;
-
- @Value("${fm.ocr_data}")
- private String ocrData;
-
- @Value("${fm.videoType}")
- private String videoType;
-
- @Bean
- public boolean isFmException() {
- return fmException;
- }
-
- @Bean
- public String fmExceptionEmails() {
- return fmExceptionEmails;
- }
-
- @Bean
- public boolean isFmOpen() {
- return fmOpen;
- }
-
- @Bean
- public String fmUploadDir() {
- return uploadDir;
- }
-
- @Bean
- public String ocrData() {
- return ocrData;
- }
-
- @Bean
- public String videoType() {
- return videoType;
- }
-
- public static void main(String[] args) {
- SpringApplication.run(CApplication.class, args);
- }
- }
|