Java Weekly, Issue 201
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Learning Java with jshell [javaspecialists.eu] A Quick intro of JShell makes it possible to explore Java...
View ArticleMaking Tomcat UTF-8-Ready
1. Introduction UTF-8 is the most common character encoding used in web applications. It supports all languages currently spoken in the world including Chinese, Korean, and Japanese. In this article,...
View ArticleActiviti with Spring Security
1. Overview Activiti is an open-source BPM (Business Process Management) system. For an introduction, check our Guide to Activiti with Java. Both Activiti and the Spring framework provide their own...
View ArticleJUnit 5 for Kotlin Developers
1. Introduction The newly released JUnit 5 is the next version of the well-known testing framework for Java. This version includes a number of features that specifically target functionality...
View ArticleHibernate – Mapping Date and Time
1. Introduction In this article, we’ll show how to map temporal column values in Hibernate, including the classes from java.sql, java.util and java.time packages. 2. Project Setup To demonstrate the...
View ArticleA Guide to Spring Boot Admin
1. Overview Spring Boot Admin is a web application, used for managing and monitoring Spring Boot applications. Each application is considered as a client and registers to the admin server. Behind the...
View ArticleIntroduction to Spring AOP
1. Introduction In this tutorial, we’ll introduce AOP (Aspect Oriented Programming) with Spring and start understanding how we can start using this powerful tool in practical scenarios. It’s also...
View ArticleJUnit5 @RunWith
1. Introduction In this quick article, we’ll cover the usage of the @RunWith annotation in the JUnit 5 framework. In JUnit 5, the @RunWith annotation has been replaced by the more powerful @ExtendWith...
View ArticleGuide to Spring Type Conversions
1. Introduction In this article, we’ll have a look at Spring’s type conversions. Spring provides out-of-the-box various converters for built-in types; this means converting to/from basic types like...
View ArticleGroovy Bean Definitions
1. Overview In this quick article, we’ll focus on how we can use a Groovy-based configuration in our Java Spring projects. 2. Dependencies Before we start, we need to add the dependency to our pom.xml...
View ArticleMocking of Private Methods Using PowerMock
1. Overview One of the challenges of unit testing is mocking private methods. In this tutorial, we’ll learn about how we can achieve this by using the PowerMock library – which is supported by JUnit...
View ArticleA Quick Guide to Using Keycloak with Spring Boot
1. Overview In this article, we’ll cover the basics of setting up a Keycloak server, how to connect a Spring Boot application to it, and how to use it with Spring Security. 2. What is Keycloak?...
View ArticleXML-Based Injection in Spring
1. Introduction In this basic tutorial, we’ll learn how to do simple XML-based bean configuration with the Spring Framework. 2. Overview Let’s start by adding Spring’s library dependency in the...
View ArticleJava Weekly, Issue 202
Here we go… 1. Spring and Java >> New Version Scheme for Java SE Platform and the JDK [infoq.com] The details of the next version scheme for Java. >> How to Implement Conditional Auditing...
View ArticleAn Overview of Identifiers in Hibernate
1. Introduction Identifiers in Hibernate represent the primary key of an entity. This implies the values are unique so that they can identify a specific entity, that they aren’t null and that they...
View ArticleQuick Guide to Java Stack
1. Overview In this article, we’ll introduce the java.util.Stack class and start looking at how we can make use of it. The Stack is a generic data structure which represents a LIFO (last in, first...
View ArticleGenerating Prime Numbers in Java
1. Introduction In this tutorial, we’ll show various ways in which we can generate prime numbers using Java. If you’re looking to check if a number is prime – here’s a quick guide on how to do that....
View ArticleCreating a Java Compiler Plugin
1. Overview Java 8 provides an API for creating Javac plugins. Unfortunately, it’s hard to find good documentation for it. In this article, we’re going to show the whole process of creating a compiler...
View ArticleIntroduction to Spring REST Shell
1. Overview In this article, we’ll have a look at Spring REST Shell and some of its features. It’s a Spring Shell extension so we recommend reading about it first. 2. Introduction The Spring REST...
View ArticleDeploy Application at Tomcat Root
1. Overview In this quick article, we’ll discuss deploying a web application at the root of a Tomcat. 2. Tomcat Deployment Basics and Terminology First, the basics of deploying an application to...
View Article