的Bonjour, 我想知道当我有两个给定服务的实现时如何配置我的jhipster applciation
由于Jhispter使用Java Spring配置,我希望编辑类
@ComponentScan
@EnableAutoConfiguration(exclude = {MetricFilterAutoConfiguration.class, MetricRepositoryAutoConfiguration.class})
@EnableConfigurationProperties({LiquibaseProperties.class, ApplicationProperties.class})
public class MyApp {
private static final Logger log = LoggerFactory.getLogger(Cfconnectingfoodwebapp3App.class);
private final Environment env;
public MyApp(Environment env) {
this.env = env;
}
但我必须提供什么,比如说我的服务是
myService with myServiceImpl1和myServiceImpl2
我有多种类型错误
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'MyServiceImpl2' is expected to be of type 'com.myapp.service.impl.MyServiceImpl2' but was actually of type 'com.sun.proxy.$Proxy202'
由于