Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. @Configuration
  2. class PetServiceConfiguration extends PetDaoConfiguration {
  3. @Bean
  4. PetService petService(PetDao PetDao) {
  5. return new PetService(PetDao);
  6. }
  7. }
  8.  
  9. @Configuration
  10. class PetDaoConfiguration {
  11. @Bean
  12. PetDao petDao() {
  13. return new PetDaoV1();
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement