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 there, dear friends.
In this video, we'll get started on a Spring Boot Project for stock and bill tracking. Before we begin, I'd like to clarify that we'll be doing this project to get more practice with Spring Boot. The Thymeleaf component will be used for front-end operations and we will also use Spring JPA and Spring Security. In this project, I will use two different user types; admin and employee. As you may predict, the admin will have access to management pages while the employee will only have access to a section of them. So, let's get started by creating a project. Visit the start.spring.io website. We will create and download our Spring Project on this website. Project will be Maven, the language is Java. Spring 3.0 is the best one for us. Now, I will modify the name parameters. Done. Let's add dependencies. First Thymeleaf. As you can see, Thymeleaf is a server-side Java template, and we'll be using HTML codes with this dependency. Search Spring Security, now JPA. I will use MySQL, so I need a MySQL driver. If you want to use another database like Oracle or Postgre, you can add an Oracle driver or Postgre driver.
In the videos that follow, perhaps we'll build a large micro service project and combine Postgre, Cassandra, and Elasticsearch. For now, I'll continue with MySQL because I simply want to demonstrate how to use Spring Boot at this time. Also, we need Jersey. The last one maybe web, done. Now, with generate button, we can generate and download our project. Now extract files from zip, done. We have a Spring Project, but we have to import it into the eclipse. Open eclipse. In file menu, select 'Import'. Now, search maven. Look, we will use the existing maven project. Next, we have to modify the Spring Project's path. Look, our palm_xml is already selected, finished. Look, our Spring Project is ready. Open 'Palm_xml' file. Look our dependencies are here. If you want you can create a spring project in eclipse as well. To do this, you need a new tool. In the help menu, click 'Eclipse Marketplace'. Now, we will search sts tools.
Let's create the latest one. Click 'Confirm', this is going to take a little bit of time now. Accept the rules and click 'Finish'. The installation will continue in the background. After finishing, you need to restart the eclipse. Now, you can create a Spring Boot Project in your eclipse as well. Create a new project. Search spring, select the 'Spring Starter Project' and click 'Next'. Look this is the settings page like start.spring.io. As you can see, the URL is start.spring.io. All settings are the same as on the start spring website. Click 'Next'. This area is for dependency, for example, Jersey. Click 'Next' and 'Finish'. The project is downloading. All right. As you can see, there is no difference between a website and eclipse for creating Spring Project. Now, let's continue with downloading a new template. Open any browser and search admin LTE in Google.
Now, go to the admin LTE website. Download the template. This template is free, so I intend to use it. However, for my needs, the Medtronic template is better, but it's not free. Extract from RAR, done. In the following videos, we will import this template into our project. I think that's enough for this video. Let's take a break here. And in the next video, we will create our database. We'll 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.