Home » Java

Java

Two Common Concurrency Bugs

As a Baeldung editor, I had the pleasure working with an author on an article on Common Concurrency Pitfalls in Java. This is a great read, but assumes a certain amount of competence on the part of the developer. There are a couple of things I’ve seen which are instant concurrency fails. They’re easy to add to the code, and ...

Read More »

Vaadin 10+ as the Future of CUBA UI

Since the very beginning, Vaadin was a cornerstone and a crucial part of the CUBA Platform UI. Thanks to its innovative approach, it helped CUBA to bring enterprise UI development to a very promising (and default nowadays) WEB land. One of the most exciting parts of Vaadin is that the whole development is isomorphic and being done primarily using Java, ...

Read More »

Advanced profile management in Spring Boot

spring-interview-questions-answers

We all are aware of profile management in Spring Boot and the flexibility it provides in configuring our applications for different environments. The other powerful aspect of this is that at any given time we can have multiple active profiles. The advantage this gives is that we can mix the deployment environment profile along with business use case related profiles. ...

Read More »

Video course on efficient enterprise testing

java-interview-questions-answers

I’ve created a few videos on the topic of effective enterprise testing. I still see a huge importance in this topic in real-world projects. Here are my experiences in testing Enterprise Java projects together with some examples. 1. Introduction & efficient Maven usage In this video, I’ll give an introduction to the testing course and show how to structure tests ...

Read More »

Migrating Spock 1.3 tests to Spock 2.0

Get know what you can expect from Spock 2.0 M1 (based on JUnit 5), how to migrate to it in Gradle and Maven, and why it is important to report spotted problems :). Important note. I definitely do not encourage you to migrate your real-life project to Spock 2.0 M1 for good! This is the first (pre-)release of 2.x with ...

Read More »

Method parameter validation with Spring and JSR 303

spring-interview-questions-answers

Spring provides an easy way to validate method parameters using JSR 303 bean validation. In this post we will see how to use this feature. Setup First we need to add support for method parameter validation by creating a MethodValidationPostProcessor bean: 1 2 3 4 5 6 7 @Configuration public class MyConfiguration {     @Bean     public MethodValidationPostProcessor methodValidationPostProcessor() {         return new MethodValidationPostProcessor();     } } Validating method parameters After registering ...

Read More »

Send your data async on Kafka

spring-interview-questions-answers

For a project, I’m trying to log the basic transactions of the user such as addition and removal of an item and for multiple types of items and sending a message to kafka for each transaction. The accuracy of the log mechanism is not crucial and I don’t want it to block my business code in the case of kafka ...

Read More »

Manage multiple Java SDKs with SDKMAN! with ease

SDKMAN! is a convenient tool for managing parallel versions of multiple Software Development Kits. The tool is especially useful for Java developers as it supports SDKs for the JVM such as Java, Groovy, Scala, Kotlin and Ceylon. Gradle, Maven, Spring Boot and many others are also supported. Manage Java VersionsInstall Maven and GradleInstall Spring Boot CLILinks SDKMAN! is supported for ...

Read More »

Apache Camel 3.1 – More camel-core optimizations coming

Hope all is good and you had a safe entry into 2020.  The Camel team is already busy working on the next Camel 3.1 version. One of the goals is to continue optimize camel-core, and this time we have had some time to look into finding some hot spots in the routing engine. One of the aspects we have looked ...

Read More »