Quantcast
Channel: Baeldung
Browsing all 4535 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Java Warning “unchecked conversion”

1. Overview Sometimes, when we compile our Java source, the compiler may print a warning message “unchecked conversion” or “The expression of type List needs unchecked conversion.” In this tutorial,...

View Article


Image may be NSFW.
Clik here to view.

Get Advised Method Info in Spring AOP

1. Introduction 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. 2. Maven Dependencies Let's start by...

View Article


Image may be NSFW.
Clik here to view.

Bad Practices With Synchronization

1. Overview Synchronization in Java is quite helpful for getting rid of multi-threading issues. However, the principles of synchronization can cause us a lot of trouble when they're not used...

View Article

Image may be NSFW.
Clik here to view.

Get List of JSON Objects with WebClient

1. Overview Our services often communicate with other REST services to fetch information. From Spring 5, we get to use WebClient to perform these requests in a reactive, non-blocking way. WebClient is...

View Article

Image may be NSFW.
Clik here to view.

Spring RestTemplate Exception: “Not enough variables available to expand”

1. Overview In this short tutorial, we'll take a close look at Spring's RestTemplate exception IllegalArgumentException: Not enough variables available to expand. First, we'll discuss in detail the...

View Article


Image may be NSFW.
Clik here to view.

Multiple Submit Buttons on a Form

1. Overview In this quick tutorial, we'll build upon getting started with forms in Spring MVC and add one more button to the JSP form, mapping to the same URI. 2. A Short Recap Earlier, we created a...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 371

1. Spring and Java >> Talking to Postgres Through Java 16 Unix-Domain Socket Channels [morling.dev] Practical Unix-domain socket support in Java – an efficient and secure approach to communicate...

View Article

Image may be NSFW.
Clik here to view.

Configuring git Credentials

1. Introduction In recent years, git has seen a sharp rise in popularity over other SCM systems such as subversion. With the rise of free platforms such as GitHub and GitLab, it's easier than ever to...

View Article


Image may be NSFW.
Clik here to view.

Guide to Implementing the compareTo Method

1. Overview As Java developers, we often need to sort elements that are grouped together in a collection. Java allows us to implement various sorting algorithms with any type of data. For example, we...

View Article


Image may be NSFW.
Clik here to view.

Distributed Performance Testing with Gatling

1. Introduction In this tutorial, we'll understand how to do distributed performance testing with Gatling. In the process, we'll create a simple application to test with Gatling, understand the...

View Article

Image may be NSFW.
Clik here to view.

Java HashMap Load Factor

1. Overview In this article, we'll see the significance of the load factor in Java's HashMap and how it affects the map's performance. 2. What is HashMap? The HashMap class belongs to the Java...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 372

1. Spring and Java >> JEP-380: Unix domain socket channels [inside.java] Performant, secure, and convenient inter-process communications with Unix domain socket support in Java 16! >>...

View Article

Image may be NSFW.
Clik here to view.

Prevent Cross-Site Scripting (XSS) in a Spring Application

1. Overview When building a Spring web application, it’s important to focus on security. Cross-site scripting (XSS) is one of the most critical attacks on web security. Preventing the XSS attack is a...

View Article


Image may be NSFW.
Clik here to view.

File Upload With Open Feign

1. Overview In this tutorial, we'll demonstrate how to upload a file using Open Feign. Feign is a powerful tool for microservice developers to communicate via REST API with other microservices in a...

View Article

Image may be NSFW.
Clik here to view.

Configure the Heap Size When Starting a Spring Boot Application

1. Introduction In this tutorial, we'll learn how to configure the heap size when we start a Spring Boot application. We'll be configuring the -Xms and -Xmx settings, which correspond to starting and...

View Article


Image may be NSFW.
Clik here to view.

Spring @Component Annotation

1. Overview In this tutorial, we'll take a comprehensive look at the Spring @Component annotation and related areas. By the end, we'll see the different ways we can use it to integrate with some core...

View Article

Image may be NSFW.
Clik here to view.

IoT Data Pipeline with MQTT, NiFi, and InfluxDB

1. Introduction In this tutorial, we'll learn what's required when creating data pipelines for IoT applications. Along the way, we'll understand the characteristics of IoT architecture and see how to...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 373

1. Spring and Java >> Why Namespacing Matters in Public Open Source Repositories [blog.sonatype.com] Simple and yet effective coordinates – preventing dependency confusion attacks using groupId,...

View Article

Image may be NSFW.
Clik here to view.

“HttpMessageNotWritableException: No converter found for return value of type”

1. Overview In this tutorial, we're going to shed light on Spring's HttpMessageNotWritableException: “No converter found for return value of type” exception. First, we'll explain the main causes of the...

View Article

Image may be NSFW.
Clik here to view.

Java Warning “Unchecked Cast”

1. Overview Sometimes, when we compile our Java source files, we see “unchecked cast” warning messages printed by the Java compiler. In this tutorial, we're going to take a closer look at the warning...

View Article
Browsing all 4535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>