Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need answer in java8.(run code) short code please given.if you don't know the answer please leave the question?? You are writing a new service for
need answer in java8.(run code)
short code please given.if you don't know the answer please leave the question??
You are writing a new service for your e-commerce site. Your task is to write a Spring Framework configuration class. package com, codility. configuration; The class that you need to create will be called systemconfin. All required 5 iaport org.springframework. context.annotation.*; classes have already been imported for you. You are working with the Spring ,, public class. systenconfig \& Framework version 5.1.8 and Java 8 . Requiremerits 1. Make it a Spring Framework Java-based Container configuration class. 2. Create a usersRepository bean. It has a no args constructor. Additionally, you should make sure that the method Usershepository anstialize() is called right after construction of the bean. 3. Greate a Legacypaynentsservice bean. it has a no args constructor. It should be available under the name paymentsService. 4. Enable auto-scanning for beans in the con, codx 1:ty utiis package. 5. The application contains another configuration class that has already been prepared: Maintenancedonfag. However, it's not being picked up by the Spring Contexl You should make sure its beans are also created by configuring the syotemconfyg olass appropriately. 6. Ensure that properties defined in the production propertzes file are available in the Spring contextStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started