When using regular expressions in Java, sometimes we need to match regex patterns in their literal form – without processing any metacharacters. Let’s find out how we can do that.
Also find me here:
Baeldung Editor
Bruno Fontana
Bruno has been a Software Engineer for more than 15 years and a techie since he was a kid. He has worked on several projects in different industries. Nowadays he is working as an Application Architect in the payments industry. When he is not developing or architecting you will find him doing 3D modeling, a bit of carpentry, or taking long walks around the city.
Here's what I've reviewed (so far):
Baeldung
- All
- Testing (4)
- Java (4)
- Spring (3)
- Spring Boot (2)
- Security (2)
- JVM (2)
- Data (2)
- Architecture (2)
- Spring MVC (1)
- Spring Data (1)
- Spring Cloud (1)
- Reactive (1)
- Java Numbers (1)
- Java Map (1)
- Java Concurrency (1)
- Java Collections (1)
- Java Array (1)
- Algorithms (1)
How to Implement a Soft Delete with Spring JPA
Filed under Spring Data
Physically deleting data from a table is usual when interacting with databases. But sometimes there are business requirements to not permanently delete data from the database. In this tutorial, we’ll learn about soft delete and how to implement this technique with Spring JPA.
Multi-Entity Aggregates in Axon
Filed under Data
In this article, we’ll look at how the Axon framework supports Aggregates with multiple entities.
Converting Java Properties to HashMap
Filed under Java Map
Let’s see how we can convert java.util.Properties into a HashMap
The java.security.egd JVM Option
Filed under JVM
The java.security.egd JVM startup property affects how the SecureRandom class initializes. Let’s explore how changing its value impacts our code.
Write Extracted Data to a File Using JMeter
Filed under Testing
Sometimes we need to write our JMeter test data into a file. Let’s explore how we can do that.
Get Advised Method Info in Spring AOP
Filed under Spring
In this tutorial, we’ll show you how to get all the information about a method’s signature, arguments, and annotations, using a Spring AOP aspect.
Clean Architecture with Spring Boot
Filed under Architecture, Spring Boot
In general, our functional requirements, frameworks, I/O devices, and even our code design may all change for various reasons. With this in mind, the Clean Architecture is a guideline to a high maintainable code, considering all the uncertainties around us.
Determine if an Integer’s Square Root Is an Integer in Java
Filed under Algorithms
Finding if an integer’s square root is also an integer is an interesting subject. Let’s look at some techniques we can use.
Integration Tests With Spring Cloud Netflix and Feign
Filed under Spring Cloud, Testing
Let’s explore how we can do integration testing of a Feign Client.
Explanation of ClassCastException in Java
Filed under Java
Let’s take a closer look at the ClassCastException.
Introduction to Netflix Mantis
Filed under Data
Let’s learn about Netflix Mantis Platform and some of the cool features it offers.
How to Import a .cer Certificate Into a Java KeyStore
Let’s find how to import a certificate in our keystores using the keytool command.
Detecting If a Spring Transaction Is Active
Filed under Spring
Let’s look at how we can find if a Spring transaction is active.
Difference Between @ComponentScan and @EnableAutoConfiguration in Spring Boot
Filed under Spring Boot
Let’s look at the difference between these two annotations for configuring our Spring Boot application.
@BeforeAll and @AfterAll in Non-Static Methods
Filed under Testing
While unit testing, we may occasionally want to use @BeforeAll and @AfterAll in non-static setup and tear-down methods. Let’s see how we can do it.
Conditionally Run or Ignore Tests in JUnit 4
Filed under Testing
Let’s look at how, based on certain conditions, we can run or ignore tests using JUnit.
Listing the Available Cipher Algorithms
Filed under Security
Let’s take a look at how we can list the available cipher algorithms.
Arrays.asList vs new ArrayList(Arrays.asList())
Filed under Java Collections
They may look very similar but they aren’t. Let’s explore why.
IllegalMonitorStateException in Java
Filed under Java Concurrency
If you want to learn why your code keeps throwing this exception, this article is for you.
Introduction to ArchUnit
Filed under Architecture
ArchUnit is a library for checking the architecture of our Java code. Let’s explore it.
Concurrency in Spring WebFlux
Concurrency in Spring Webflux depends on many factors. Let’s explore them in-depth.
Java Reporting Tools: a Comparison
Filed under Java
There are several reporting solutions for Java. In this article, we compare the most popular.
Spring @PathVariable Annotation
Filed under Spring MVC
When we need to extract values from the request URI, @PathVariable is the way to go. Let’s look how to use it.
Division by Zero in Java: Exception, Infinity, or Not a Number
Filed under Java Numbers
When dividing by zero, integer division always throws an Exception. This is not the case with floating-point numbers, however. Let’s see why.
Where Is the Array Length Stored in JVM?
Filed under Java Array, JVM
If you always wanted to know how JVM stores array length, you will find the answer here.