In this tutorial we will create simple Spring application based on the Hexagonal Architecture (also called as ports and adapters). This concept is focused on separating implementation of business rules from technical details, it is very flexible and doesn’t require specific implementation (like naming of the modules , classes, adapters and so on).
You can use this example as template to start with your own application.
Month: March 2019
Gradle – publish artifacts to Maven local repository
Configuration of a Gradle task publishing (installing) artifacts into Maven local repository.
Gradle – reading from Maven local repository
In this short post we will see how to use Maven local repository as a source of dependencies.
This approach can be useful during local development, when for some reasons the same dependencies are needed by projects managed by different build automation tools.
Initialize array with values in one line
In this tutorial we will check how we can initialize list with values in one line.
Double brace initialization anti pattern
In this tutorial we will check, why is double brace initialization is considered an anti pattern.
How to make array backed list editable
Suppose we have a list that is backed by an array. In another words – that we have a wrapper around the array. Our question is: how to add or remove elements from that list?
Array backed list
In this tutorial we will examine what is array backed list and how it behave.
How to display real Hibernate SQL query using slf4j
In this tutorial you will find out how to show real SQL statements (with real parameter values instead of question marks), that are send to database.
This will greatly help us to better debug our code.
Spring 3 MVC Hibernate Hsqldb Embedded database
In this tutorial we will create simple Spring 3 MVC application with Hsqldb as embedded database.
We will start with project created in previuos tutorial, where we were using H2 database.
Spring 3 MVC Hibernate H2 Embedded database Tutorial
In this tutorial we will create simple Spring 3 MVC application with H2 as embedded database. This configuration is useful for fast prototyping, especially during the development phase.
Technologies used:
Spring 3, Java 6, Maven 3, Hibernate 4, H2