Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need answer in java8. provide also run screenshot.i already post this question.everybody gave wrong ans. You are writing a new service for your e-commerce site.
need answer in java8.
provide also run screenshot.i already post this question.everybody gave wrong ans.
You are writing a new service for your e-commerce site. Your task is to write a Spring Framework configuration class. import com,codility, beans, Legacypaymentsservice; import com.codility.beans. UsersRepository; The class that you need to create will be called systemconflg. All required 5; iraport org.springframework. cantext. annotation. *; classes have already been imported for you. You are working with the Spring public class systenconfig f Framework version 5:1.8 and dava 8 . Requirements: 1. Make it a Spring Framework Java-based Container configuration class, 2. Create a UsersRenository bean. It has a no args constructor. Additionally, you should make sure that the method Bsershepost tary instialize() is called right after construction of the bean. 3. Ereate a Legacypaymentsservice bean. it has a no args constructor, it should be available under the name payment sService. 4. Enable auto-soanning for beans in the con codility utuIs package. 5. The application contains another configuration class that has already been prepared: Masintenancecontig. However, it's not being picked up by the Spring Context. You should make sure its beans are also created by configuring the systenconfig class appropriately, 6. Ensure that properties defined in the production properties 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