Guest User

Untitled

a guest
Jan 28th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. package org.somecomp.blablaappv2;
  2.  
  3. import org.springframework.context.annotation.Bean;
  4. import org.springframework.context.annotation.ComponentScan;
  5. import org.springframework.context.annotation.Configuration;
  6. import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
  7. import org.somecomp.blablaappv2.service.*;
  8.  
  9. @Configuration
  10. @ComponentScan("org.somecomp.blablaappv2")
  11. @EnableJpaRepositories("org.somecomp.blablaappv2.repositories")
  12. public class Config {
  13.  
  14. @Bean
  15. public PostService postService(){
  16. return new PostService();
  17. }
  18.  
  19. @Bean
  20. public RankService rankService(){
  21. return new RankService();
  22. }
  23.  
  24. @Bean
  25. public TeacherService teacherService(){
  26. return new TeacherService();
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment