Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- class PetServiceConfiguration extends PetDaoConfiguration {
- @Bean
- PetService petService(PetDao PetDao) {
- return new PetService(PetDao);
- }
- }
- @Configuration
- class PetDaoConfiguration {
- @Bean
- PetDao petDao() {
- return new PetDaoV1();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement