Spring component scan exclude
How to exclude classes/packages from Component Scan in Spring Framework? The task is a bit tricky, especially when regexp is involved. See how it works! Example Spring beans Let’s say that we’v...
How to exclude classes/packages from Component Scan in Spring Framework? The task is a bit tricky, especially when regexp is involved. See how it works! Example Spring beans Let’s say that we’v...
How to use Java volatile and atomic operations to write lock-free code? These are two fundamental concepts in Java concurrency and understanding both of them is required to write correct, thread-sa...
How to find annotated classes using Spring Framework and read metadata from them? Sometimes you may want to attach metadata to your classes using custom annotations. Here’s an example how you can l...
One of the first control flow statements in many programming languages is switch-case. In Clojure switch-case can be achieved in different ways, what we will show in this article. The case macro...
In this article we describe a number of common productivity pitfalls. Eliminating even some of them will improve your efficiency. Good luck! Multitasking It comes down to performing several tas...
Problem: How to create “Hello, World” app in Spring Boot? Solution: Gradle build script will all required dependencies: buildscript { repositories { jcenter() maven { url ...
Problem: How to create simple Spring Boot REST service with HATEOAS support? It’s very simple with spring-boot-hateoas project. Solution: Project configuration for Gradle (build.gradle): app...