Commit bbca182f authored by 侯彦文's avatar 侯彦文

修改扫描包

parent 592a3bfd
package com.yonde.dex.basic.server; package com.yonde.dex.basic.server;
import com.yonde.dex.dao.DEXDaoServiceBoot; import com.yonde.dex.dao.DEXDaoServiceBoot;
import com.yonde.dex.dao.service.adapter.EnableFeignClientsAutoReplace;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing; import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.config.BootstrapMode;
@ComponentScan( @ComponentScan(basePackages = {"com.yonde", "${extPackages:''}"})
basePackages = {"com.yonde"}
)
@EnableJpaAuditing @EnableJpaAuditing
@EnableDiscoveryClient @EnableDiscoveryClient
@SpringBootApplication @SpringBootApplication
@DEXDaoServiceBoot( @DEXDaoServiceBoot(
jpaBasePackages = {"com.yonde"}, jpaBasePackages = {"com.yonde", "${extPackages:''}"},
entityBasePackages = {"com.yonde"}, entityBasePackages = {"com.yonde", "${extPackages:''}"},
feignBasePackages = {"com.yonde"}, feignBasePackages = {"com.yonde", "${extPackages:''}"},
feignReplaceBasePackages = {"com.yonde"}, feignReplaceBasePackages = {"com.yonde", "${extPackages:''}"},
entityCollectorBasePackages = {"com.yonde"} entityCollectorBasePackages = {"com.yonde", "${extPackages:''}"}
) )
@EnableFeignClients({"com.yonde", "${extPackages:''}"})
@EnableFeignClientsAutoReplace(basePackages = {"com.yonde", "${extPackages:''}"})
@EnableJpaRepositories(basePackages = {"com.yonde", "${extPackages:''}"}, bootstrapMode = BootstrapMode.DEFERRED)
@EntityScan(basePackages = {"com.yonde", "${extPackages:''}"})
public class ServerApplication { public class ServerApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment