|
|
@ -14,7 +14,7 @@ import org.springframework.context.annotation.Scope;
|
|
|
|
public class AppConfig {
|
|
|
|
public class AppConfig {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean(name = "speakerService")
|
|
|
|
@Bean(name = "speakerService")
|
|
|
|
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
|
|
|
|
@Scope(value = BeanDefinition.SCOPE_SINGLETON)
|
|
|
|
public SpeakerService getSpeakerService() {
|
|
|
|
public SpeakerService getSpeakerService() {
|
|
|
|
return new SpeakerServiceImpl(getSpeakerRepository());
|
|
|
|
return new SpeakerServiceImpl(getSpeakerRepository());
|
|
|
|
}
|
|
|
|
}
|
|
|
|