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

Image may be NSFW.
Clik here to view.

Creating New Roles and Authorities in JHipster

1. Overview JHipster comes with two default roles – USER and ADMIN – but sometimes we need to add our own. In this tutorial, we’ll create a new role named MANAGER that we can use to provide additional...

View Article


Image may be NSFW.
Clik here to view.

Spring Data JPA @Modifying Annotation

1. Introduction In this short tutorial, we’ll learn how to create update queries with the Spring Data JPA @Query annotation. We’ll achieve this by using the @Modifying annotation. First, we’ll refresh...

View Article


Image may be NSFW.
Clik here to view.

Ratpack with RxJava

1. Introduction RxJava is one of the most popular reactive programming libraries out there. And Ratpack is a collection of Java libraries for creating lean and powerful web applications built on Netty....

View Article

Image may be NSFW.
Clik here to view.

Maven Enforcer Plugin

1. Overview In this tutorial, we’re going to learn about the Maven Enforcer Plugin and how we can use it to guarantee the level of compliance in our project. The plugin is especially handy when we have...

View Article

Image may be NSFW.
Clik here to view.

How to Change Java Version in an Eclipse Project

1. Overview In the Java ecosystem, as the new releases of JDK are introduced at least once a year, we’ll probably need to switch to a newer version at some point. In this quick tutorial, we’ll show how...

View Article


Image may be NSFW.
Clik here to view.

A Guide to the Reflections Library

1. Introduction The Reflections library works as a classpath scanner. It indexes the scanned metadata and allows us to query it at runtime. It can also save this information, so we can collect and use...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 270

Here we go… 1. Spring and Java >> What’s new with Spring Initializr [spring.io] A quick look at the improved API for generating new projects, which now lets you customize project generation...

View Article

Image may be NSFW.
Clik here to view.

JUnit 5 Conditional Test Execution with Annotations

1. Overview In this tutorial, we’re going to take a look at conditional test execution with annotations in JUnit 5. These annotations are from the JUnit Jupiter library’s condition package and allow us...

View Article


Image may be NSFW.
Clik here to view.

Convert String to JsonObject with Gson

1. Overview When working with JSON in Java using the Gson library, we have several options at our disposal for converting raw JSON into other classes or data structures that we can work with more...

View Article


Image may be NSFW.
Clik here to view.

Static Content in Spring WebFlux

1. Overview Sometimes, we have to serve static content in our web applications. It might be an image, HTML, CSS, or a JavaScript file. In this tutorial, we’ll show how to serve static content using...

View Article

Image may be NSFW.
Clik here to view.

Native Memory Tracking in JVM

1. Overview Ever wondered why Java applications consume much more memory than the specified amount via the well-known -Xms and -Xmx tuning flags? For a variety of reasons and possible optimizations,...

View Article

Image may be NSFW.
Clik here to view.

JDK Configuration for Maven Build in Eclipse

1. Overview The Eclipse IDE is one of the most common tools for Java application development. It comes with default settings that enable us to build and execute our code right away within the IDE....

View Article

Image may be NSFW.
Clik here to view.

String Comparison in Kotlin

1. Overview In this tutorial, we’ll discuss different ways of comparing Strings in Kotlin. 2. Comparison Operators Let’s start with the “==” operator. This operator can be used to check if the strings...

View Article


Image may be NSFW.
Clik here to view.

Spring Data JPA Batch Inserts

1. Overview Going out to the database is expensive. We may be able to improve performance and consistency by batching multiple inserts into one. In this tutorial, we’ll look at how to do this with...

View Article

Image may be NSFW.
Clik here to view.

Java’s Time-Based Releases

1. Introduction In this article, we’ll discuss the new time-based releases of Java and the impact on all types of developers. Changes to the release schedule include updating the feature delivery and...

View Article


Image may be NSFW.
Clik here to view.

Guide to I/O in Groovy

1. Introduction Although in Groovy we can work with I/O just as we do in Java, Groovy expands on Java’s I/O functionality with a number of helper methods. In this tutorial, we’ll look at reading and...

View Article

Image may be NSFW.
Clik here to view.

Time Comparison of Arrays.sort(Object[]) and Arrays.sort(int[])

1. Overview In this quick tutorial, we’ll compare the two Arrays.sort(Object[]) and Arrays.sort(int[]) sorting operations. First, we’ll describe each method separately. After that, we’ll write...

View Article


Image may be NSFW.
Clik here to view.

Converting a String to a Date in Groovy

1. Overview In this short tutorial, we’ll learn how to convert a String representing a date into a real Date object in Groovy. However, we should keep in mind that this language is an enhancement of...

View Article

Image may be NSFW.
Clik here to view.

Generate Combinations in Java

1. Introduction In this tutorial, we’ll discuss the solution of the k-combinations problem in Java. First, we’ll discuss and implement both recursive and iterative algorithms to generate all...

View Article

Image may be NSFW.
Clik here to view.

Lists in Groovy

1. Overview In Groovy, we can work with lists just like we do in Java. But, with its support for extension methods, it ships with quite a bit more. In this tutorial, we’ll look at Groovy’s take on...

View Article
Browsing all 4535 articles
Browse latest View live


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