Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.somecomp.blablaappv2;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
- import org.somecomp.blablaappv2.service.*;
- @Configuration
- @ComponentScan("org.somecomp.blablaappv2")
- @EnableJpaRepositories("org.somecomp.blablaappv2.repositories")
- public class Config {
- @Bean
- public PostService postService(){
- return new PostService();
- }
- @Bean
- public RankService rankService(){
- return new RankService();
- }
- @Bean
- public TeacherService teacherService(){
- return new TeacherService();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment