How to Iterate over a List in Thymeleaf
TechBlogStation
by TBS
2y ago
The List is the most commonly used collection in Java. We often need to send the items in a list to a view template that will be displayed in the User Interface. Thymeleaf is a very popular template engine and Spring Boot provides great support to Thymeleaf. This is the reason, Thymeleaf is used commonly with Spring Boot applications. In this short tutorial series, we are looking at various aspects of Thymeleaf. In one of our previous articles, we explained how to iterate over a Map in Thymeleaf, and here we are looking at how to loop through List in Thymeleaf. If you are a Spring Boot develop ..read more
Visit website
How to Loop through Map in Thymeleaf
TechBlogStation
by TBS
2y ago
Thymeleaf is a very popular template engine. It is widely used with Spring Boot applications. We can easily pass data from the controller to Thymeleaf templates and vice versa. In java, Collections are the most popular way to store data. So when we develop the Spring Boot application, Java Collections is definitely used at least once. So in this short tutorial series, we will look at how to loop through Collection in Thymeleaf and we are starting with Maps. So this article will explain, how to iterate over a map in the Thymeleaf template. We also recently wrote a complete tutorial on Thymeleaf ..read more
Visit website
Complete Guide on using Thymeleaf with Spring Boot
TechBlogStation
by TBS
2y ago
Thymeleaf is a Java-based server-side template engine. It process HTML5, XML, and XHTML etc. Thymeleaf can work in both web and non-web environments. Thymeleaf can be easily integrated with Spring and Spring Boot applications. It is mainly used for view layers in web MVC applications. Spring boot makes it extremely easy to integrate and use Thymeleaf in spring boot applications. In this article, we will learn how we can use Thymeleaf to build our view layer of the spring boot application. It will be explained with the help of examples. How to integrate Thymeleaf with Spring Boot? Spring boot a ..read more
Visit website
What is MapReduce in Hadoop?
TechBlogStation
by TBS
2y ago
Introduction Hadoop provides the robust, distributed processing of enormous unstructured data volumes across commodity computer clusters, each with its own storage. MapReduce performs two critical functions: it filters and distributes work to different nodes within the cluster or map, a function known as the mapper, and it organizes and reduces the data from each node into a coherent answer to a query, known as the reducer. How does MapReduce work? The original MapReduce version had a number of component daemons, including: JobTracker is the cluster’s master node, in charge of all jobs and res ..read more
Visit website
How to Export Data into Excel in Spring Boot Application
TechBlogStation
by TBS
2y ago
The most important thing in any application is the data. Regardless of application type, exporting data from the application to an external document format is vital. To be specific, we need data exporting for various reporting purposes, tally data, audit purposes, etc. In our previous tutorial, we learned how to export data into PDF documents in the Spring Boot application. Now it’s time to learn to export data into an excel document. We are going to use Apache POI for creating, writing, and exporting data into an excel document. What do we need? We need the following dependencies/technologies ..read more
Visit website
How to Export Data to PDF in Spring Boot Application
TechBlogStation
by TBS
2y ago
It is often needed that we export some data from our web application to an external document. Here, we are describing how we can export data from our spring boot application to a PDF file. We are using the OpenPDF library for generating and exporting data to the PDF from our application. It’s an open-source java library used for creating and modifying PDF files using Java. Let’s start coding: Creating Spring Boot Project Let’s start the example by creating a spring boot project. Go to start.spring.io and generate a spring boot project. Once the project is created by the above spring initializ ..read more
Visit website
Dependency Injection in Spring
TechBlogStation
by TBS
2y ago
Dependency Injection is the concept of outsourcing the injection of an object’s dependencies to the Spring container. Dependency injection commonly referred to as DI is one of the most amazing and popular concepts provided by the Spring framework. You can consider it as a design pattern. As the name suggests, it is related to injecting dependencies or we can say helper objects. The main purpose of dependency injection is to provide loose coupling. For large-scale applications, tightly coupled code can lead to enormous effort during modification in an already created application. Let’s see what ..read more
Visit website
Java Persistence API (JPA) – Complete Guide with Example
TechBlogStation
by TBS
3y ago
Overview Developers of an object oriented language want to work with objects not the relational data. When we want to store our objects or data in a database, we need to write database specific queries in our java code using JDBC. Now with this approach, there are few problems. First, we need to explicitly convert database queries into java objects and database result set into java objects. Second, we need to manually handle all database transactions. To all these problems, there is one solution – Java Persistence API. Java Persistence API aka JPA is a specification that provides functionaliti ..read more
Visit website
Creating, Reading, and Writing: Everything about Java Directory
TechBlogStation
by TBS
4y ago
We often require directories aka folders in our computers, laptops, etc. This helps us in organizing our files and data so that it is easy to access and maintain. The Java directory is nothing different from the usual directories or folders. Of course, in java, we will not do it manually but will use this simple language to do our work. On the internet, there is a lot of scattered stuff that talks about either creating, or reading or writing the directories in Java. That’s why I decided to make a full in-depth guide that covers the java directories all-inclusive. Introduction to the Java Direc ..read more
Visit website
Solving the Rock Paper Scissors Game in Java
TechBlogStation
by TBS
4y ago
Playing the rock paper scissors game is one of my most memorable times of childhood. Whenever our siblings had any consensus issues among us, always chosen this wonderful game to decide. Those tiny quarrels are very precious and so are the games of childhood. Thought, today let’s connect childhood and adulthood. So let’s make this simple and fun rock paper scissors game in Java. Don’t worry if you are not aware of the rock, paper, and scissors game then before actual program code, we will let you know the rules of this simple and cool game. Introduction to Rock Paper Scissors Game Okay, the ga ..read more
Visit website

Follow TechBlogStation on FeedSpot

Continue with Google
Continue with Apple
OR