1234567891011121314151617181920212223242526272829 |
- package com.hfln.device.server;
- import org.mybatis.spring.annotation.MapperScan;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
- import org.springframework.cloud.openfeign.EnableFeignClients;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.scheduling.annotation.EnableScheduling;
- /**
- * Spring Boot Starter
- *
- */
- @EnableDiscoveryClient
- @MapperScan("com.hfln.device.infrastructure.mapper")
- @EnableFeignClients(basePackages = "com.hfln.device.client.api")
- @SpringBootApplication(
- scanBasePackages = {"com.hfln.device.**"}
- )
- @ComponentScan(
- basePackages = {"com.hfln.device.**"}
- )
- @EnableScheduling
- public class DeviceApplication {
- public static void main(String[] args) {
- SpringApplication.run(DeviceApplication.class, args);
- }
- }
|