Spring JDBC + 2 datasources

Spring Data JDBC with two datasources

Spring Data JDBC with two datasourcesSpring JDBC plus two datasources

Two databases used by one Spring Boot application does not seem tricky. But they both are accessed through Spring Data JDBC. And then the most tutorials remains tight-lipped. Even though that is not straight forward but still possible.

 

Single task split to 5 subtasks

ExecutorService - how to complete a task by multiple threads in Java

ExecutorService - how to complete a task by multiple threads in Javasplit tasks

Executing operations one after another is easy. However, sometimes we desire more - parallelism. Are you sure you know how to execute tasks in parallel in Java? If not, let me show you how to start multiple threads with ExecutorService, give them some tasks and wait for the result.

Design patterns in examples - State

Design patterns in examples - State

Active, inactive, saved, verified, sent, completed. Do they seem familiar? If so, you have had a potential use case for State design pattern. Would you like to learn it? Then, let's do it.

 

Design patterns in examples - Memento

Design patterns in examples - Memento

Memento is a design pattern that represents one of the possibilities to implement save and restore functionality.

Tutorial for webpack 4 - part 13 - live code replacement

Although automatic watching for changes and rebuilding bundles is a great webpack feature that improves development, there is some more manual work that needs to be done before you see the result in the browser. I would like to show you how webpack-dev-server can help you.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.