Thymeleaf is a Java template engine for processing HTML, XML, JavaScript, CSS, and text. In this Spring Boot Thymeleaf Example, we will learn how to configure Thymeleaf with Spring Boot Application and build a simple Employee Details app. … [Read more...]
Spring Boot JPA Tutorial | Spring Data JPA – CrudRepository
In this Spring Boot JPA Tutorial, we will integrate Spring Data JPA into our Spring Boot application. Our Employee management application will be extending CRUDRepository which in turn extends the Repository interface. … [Read more...]
Angular 5 Component Example (Formerly Angular 2)
In this article, we will get to know about Angular 5 Component. Angular Component are the basic building block of an angular application, which allows you to control how your application looks and functions. There are three steps involved to create a component. Importing Component Decorator dependencies Adding Metadata in the Component decorator Exporting the Class … [Read more...]
Spring MVC 5 Thymeleaf 3 Hello World Example
Thymeleaf is a Java template engine for processing HTML, XML, JavaScript, CSS, and text. In this Spring MVC 5 Thymeleaf example, we will learn how to configure Thymeleaf with Spring MVC. We need to add the dependency "thymeleaf-spring5" in order to use Thymeleaf in our Spring MVC 5. … [Read more...]
Spring Boot Tomcat JDBC Connection Pool Example | Oracle
In this Spring Boot Tomcat JDBC Connection Pool Example, we will learn how to implement Tomcat JDBC Connection Pool in a Spring Boot application. The Tomcat JDBC Connection Pool is an alternative to Apache Commons DBCP connection pool. Tomcat JDBC Connection Pool is extremely simple due to the very simplified implementation, the line count and source file count are very low … [Read more...]
Spring Boot Logging – Logback | RollingFileAppender + SpringProfile
Logback is the successor of the popular logging framework log4j. Logback is an excellent choice for enterprise applications since it’s fast, simple yet powerful. Common Logging will be automatically included when we use any of the Spring Boot Starter dependencies since they internally include spring-boot-starter-logging. In this Spring Boot Logging - Logback example, we will … [Read more...]
Spring Boot Log4j2 Example | XML + YAML + JSON
Spring Boot by default uses Logback framework for logging when we use Spring Boot Starter dependency. Apache Log4j 2 is the successor of Log4j which provides significant improvements over its predecessor Log4j 1.x and provides many of the features available in Logback. In this Spring Boot Log4j2 Example, we will learn how to configure the log4j 2 framework in Spring boot … [Read more...]
Spring Boot HikariCP Connection Pool Example | MySQL
HikariCP is a lightweight and highly optimized Java connection pool. Connection Pooling is a technique of creating and managing a pool of connections which is already created and ready for use by any process which needs them. In this Spring Boot HikariCP Connection Pool example, we will learn how to use HikariCP with Spring Boot. … [Read more...]
Spring Security Database Authentication Example JavaConfig + XML
In the Spring Security Database Authentication Example, we will build a simple Spring MVC Hello World application and build our own login form for our Spring Security application which performs Authentication and Authorization from the database. … [Read more...]
Spring Boot JDBC Connection Pool Example | Apache Commons dbcp2 + MySQL
Connection Pooling is a technique of creating and managing a pool of connections which is already created and ready for use by any process which needs them. Connection Pooling can increase the performance of the application significantly. In order to display the data to the user, the application typically performs the following process creates a connection, connects to the … [Read more...]
Enable CORS in Spring Restful Web Services | @CrossOrigin + XML Configuration + Filter
CORS Stands for Cross-Origin Resource Sharing, As a security measure browsers will block AJAX request to the resource residing on a different origin. CORS is a W3 Specification, which is implemented by most of the browsers and lets us request for the resource on the different domain in a safer way. (Only when the other domain sends back the response with some special … [Read more...]
Spring Boot RESTful Web Services Example + Spring Data JPA + CRUD
In this Spring Boot RESTful Web Services Example, we will learn how to perform CRUD Operations (Create, Read, Update, Delete) using Spring RESTful Web Services with the support of Spring Data JPA. Our application will be deployed in the embedded Tomcat Server of Spring Boot. We will return the data in the form of both JSON and XML.In REST, manipulation of the resources is … [Read more...]
- 1
- 2
- 3
- …
- 13
- Next Page »