| | |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Import; |
| | | import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | |
| | | @EnableSwagger2 |
| | | @EnableFeignClients |
| | | @MBCloudApplication |
| | | @EnableScheduling//开启定时任务 |
| | | @Import({WebConfig.class}) |
| | | @MapperScan("com.dsh.account.mapper") |
| | | public class AccountApplication { |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(AccountApplication.class, args); |
| | | try { |
| | | SpringApplication.run(AccountApplication.class, args); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @Bean |