The course is part of this learning path
In this course, we will learn the concepts of microservice and spring framework with a focus on Spring Boot.
Learning Objectives
- Understanding Spring Boot
Intended Audience
- Beginner Java developers
- Java developers interested in learning how to Build and Deploy RESTful Web Services
- Java Developers who want to develop web applications using the Spring framework
- Java Developers who want to develop web applications with microservices
- Java Developers who wish to develop Spring Boot Microservices with Spring Cloud
Prerequisites
- Basic Java knowledge
Hello dear friends.
In this video, we will add an employee product list page to our project. Let's begin. Before I begin, I'd like to add an employee product list page. In fact, I shall carry out the same actions that are on the AdminProduct list, only the process area will be altered. We will conduct a sales operation on the employee product list page. However, we will do so in the next videos. First, Open the AdminController and Copy the list product method. Paste this into the EmployeeController. Now inject ProductService into our controller. Change path with EmployeeProductList. Change the return list page. Okay, done. Now we have to add an employee product list page. Add a new HTML page named EmployeeProductList. Now we can copy this from the AdminProductList. Paste into the EmployeeProductList.
Now we have to delete this button and I will change this button with the 'Sale.' Okay done. We shall perform delete, update, and sale operations in the following videos. For the time being this will be enough. Change the access URL in the EmployeeLayout. Okay done. If you are ready, let's try. Run project, login as an employee, and look at our products. Logout and login with admin. Add new product, logout, and log back in as an employee. And look, now we can see the new computer. Done. Now we have finished listing the products. In the next video, we will delete products from the AdminProductList page. So, I will see you in the next video.
OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.