|
@@ -5,15 +5,12 @@ 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.context.annotation.ComponentScan;
|
|
|
-import org.springframework.context.annotation.ComponentScans;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
-@SpringBootApplication(scanBasePackages = {"com.fire.*","com.fire.admin","com.fire.common"})
|
|
|
+@SpringBootApplication(scanBasePackages = {"com.fire.dto", "com.fire.admin", "com.fire.common"})
|
|
|
@EnableDiscoveryClient
|
|
|
-@MapperScan({"com.fire.admin.mapper","com.fire.admin.repository"})
|
|
|
+@MapperScan({"com.fire.admin.mapper"})
|
|
|
@EnableTransactionManagement(proxyTargetClass = true)
|
|
|
-@ComponentScans(value = {@ComponentScan("com.fire.dto.system"),@ComponentScan("com.fire.admin.*")})
|
|
|
@EnableSwagger2Doc
|
|
|
public class AdminApplication {
|
|
|
|