In this article, we will discuss on 'Spring Transaction Annotations With Examples'. Obviously, all Spring transactions related annotations will also work with a Spring Boot Application. These annotations play a very important role while creating a web application in Spring Boot. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Transaction Annotations With Examples' here only. First of all, let's discuss some fundamentals on the term Transaction, and then move ahead to 'Spring Transaction Annotations'. What is a Transaction? Transactions regulate the modifications that we execute in one or more software systems. These software systems can be databases, message brokers etc. The primary
Spring Scheduling Annotations With Examples
In this article, we will discuss on 'Spring Scheduling Annotations' with examples. Needless to say, Scheduling is an important part of a production grade application. Hence, learning of Spring Scheduling Annotations also becomes equally important. These annotations play a crucial role in creating an application in Spring Boot. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Scheduling Annotations' with examples here only. Since scheduling is part of Spring Core, we don't need to add any specific dependency to get the features of it. Moreover, all the annotations of Spring Scheduling will also apply to Spring Boot Application. In order to
Spring Security Annotations With Examples
In this article, we will discuss on 'Spring Security Annotations' with examples. Obviously, these annotations can be used in a Spring Boot project as well. These annotations play a crucial role in creating a web application in Spring Boot. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Security Annotations' here only. First of all, in order to use Security related annotations in your Spring Boot project, you need to add security starter dependency. If you created a project using STS (Spring Tool Suite), you have to select 'Spring Security' starter or else add the following dependency in your pom.xml file. <dependency>
Spring Boot Interview Questions & Answers
If we talk about a job interview in Java technology, Spring Boot becomes the most popular topic. Even if you don't mention Spring Boot in your resume, you will reduce the chances of getting shortlisted. It happens because now-a-days Spring Boot is the most widely used framework for developing a Java based Application. Apart from that, it also used to develop microservices based projects in Java, which again is a trending architecture in the industry. Hence, Spring Boot becomes a 'Must Know' skill for a Java developer. Therefore, our topic for discussion is 'Spring Boot Interview Questions & Answers'. In this article, we will talk about the most important interview questions on Spring Boot. If you are looking for detailed tutorials
Java Interface
Either you are a beginner or a professional in Java programming language, you must have come across the term Java Interface. As a beginner, if not, actually you have not learnt the Java language properly. Even you may not be a good Java Programmer, if you have not learnt each aspect of a Java Interface. You are expected to know about Java Interface in a deeper way. Additionally, what are the changes introduced in newer versions of JDK, especially in JDK8. For example, the introduction of default and static methods in Java Interface. Needless so say, the introduction of new features in Java 8 has completely changed the definition of Java Interface. Before Java 8, no method with a body was
Spring Security Without WebSecurityConfigurerAdapter
In the context of the Spring Security module, WebSecurityConfigurerAdapter is an abstract class which has been deprecated from Spring Security 5.7.0-M2 as per an announcement posted in the Spring Official website, on 21st Feb, 2022. It was generally used to extend configure() methods by a custom configuration subclass. As a result, it encourages users to move towards a component-based security configuration. To support with the change to this new design of configuration, we will discuss a list of common use-cases and the proposed alternatives going forward. Therefore, we will discuss about the implementation of use cases of Spring Security Without WebSecurityConfigurerAdapter. It is important to know about this change because sooner or later we will be developing security features using the
Spring Boot Batch Example CSV to MySQL Using JPA
Sometimes in real time projects, we need to transfer data from one location to another. If the volume of data is small, we can achieve this by applying any traditional approach. On the other hand, if there is a huge amount of data, we can make use of Spring Batch API to make the transfer of data faster and performant. In this article 'Spring Boot Batch Example CSV to MySQL Using JPA', we are going to transfer the data from CSV fie to MySQL database using Spring Boot Batch. We have already discussed theoretical concepts of Spring Batch in a separate article 'Spring Batch Tutorial'. Now, its time to implement our example 'Spring Boot Batch Example CSV to MySQL Using JPA'. What
Spring Batch Tutorial
Generally, all applications have some data in some form. In enterprise applications, we deal with large volume of data. Sometimes processing a single operation faster is not sufficient due to the large volume of data. This requires a robust transactional control and failure recovery mechanisms, which are complex to implement. In order to handle all this, Spring Framework provides a module 'Spring Batch' for the Batch Processing. Therefore, our topic for discussion is 'Spring Batch Tutorial'. Spring Batch Processing offers processing of data in the form of batch jobs. Spring Batch offers reusable functions for processing large volume of records. It also includes logging/tracing, transaction management, job processing statics, skip, job restart, and resource management. Spring Batch has taken care of
Java 14 Features
After the release of Java 13 on 17 September, 2019 and completing the six-month cycle, Java 14 version was released on 17 March 2020. We can download Java 14 from here. Here we will talk about Java 14 Features. Some of the features in Java 14 are in 'Preview' Stage, while others finalized by Oracle community. One of the popular feature 'Switch Expressions' which was a Preview feature is now approved in Java 14. We will discuss in detail about all of them in this article. Java 14 Features As a developer, we have following new features which are added in Java 14. 1. Record Type (Preview) 2. Switch Expressions 3. Pattern matching for instanceof Operator (Preview) 4. Helpful NullPointerExceptions 5. Text Blocks (Preview) What is a Preview feature
Java Features After Java 8
After Java 8, Java 9 has big changes & new features. Here in this section we will talk about Java Features After Java 8. If you are preparing for a Java developer interview, there are 100% chances that, you will find some questions about this topic. This article may work as a refresher for the interview. You can learn about Java 8 Features from a separate article. We will update this section on a regular basis in case of a release of the new version. Let's see Java Features After Java 8. New In Java 9 Let's start our topic 'Java Features After Java 8' with New Features in Java 9. 1) Java Platform Module System : Jigsaw Project 2) JShell Command Line Tool 3) Private