Package de.codecentric.moviedatabase.config

Source Code of de.codecentric.moviedatabase.config.ServiceConfiguration

package de.codecentric.moviedatabase.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import de.codecentric.moviedatabase.service.InMemoryMovieService;
import de.codecentric.moviedatabase.service.MovieService;

@Configuration
public class ServiceConfiguration {
 
  @Bean
  public MovieService movieService(){
    return new InMemoryMovieService();
  }
 
}
TOP

Related Classes of de.codecentric.moviedatabase.config.ServiceConfiguration

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.