Question: need answer in JAVA8. please see the solution line..ans provide ans. You are writing a new service for your e-commerce site. Your tas is to

 need answer in JAVA8. please see the solution line..ans provide ans.

You are writing a new service for your e-commerce site. Your tas

is to write a Spring Framework configuration class. The class that you

need answer in JAVA8. please see the solution line..ans provide ans.

You are writing a new service for your e-commerce site. Your tas is to write a Spring Framework configuration class. The class that you need to create will be called systemconfig. All required classes have already been imported for you. You are working with the Spring Framework version 5.1.8 and Java 8. Requirements 1. Make it a Spring Framework Java-based Container configuration class. 2. Create a userspepository bean. It has a no args constructor. Additionally, you should make sure that the method User sRepository. 1n1t1a11z () is called right after constructio of the bean. 3. Create a LegacypaymentsServace bean. It has a no args constructor. It should be available under the name paymentsservice. 4. Enable auto-scanning for beans in the combodi11ty.utils package. 2. Create a usersRepository bean. It has a no args constructor. Additionally, you should make sure that the method UsersRepository. initialize() is called right after construction of the bean. 3. Create a LegacyPaymentsservice bean. It has a no args constructor. It should be available under the name paymentsService. 4. Enable auto-scanning for beans in the com.codility. utils package. 5. The application contains another configuration class that has already been prepared: MaintenanceConfig. However, it's not being picked up by the Spring Context. You should make sure its beans are also created by configuring the systemiconfig class appropriately. 6. Ensure that properties defined in the production. properties file are available in the Spring Context. If you would like to solve the task locally you can use this pem. x In 12345678910packagecom.codility.configuration;importcon.codility.beans.LegacyPaymentsService;importcon.codility.beans.UsersRepository;importorg.springframework.context.annotation.*;publicclassSystemconfig}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!