Java developer blog

How to enable partial compilation in IDEA

Overview Sometimes you may want to run a main method in one particular class despite having some errors in a project. IntelliJ IDEA prevents you from it by default. In the post, we are going to d...

How to write data in CSV format

Overview Sometimes we need to save data from a database in a file. For example, we could write data in a CSV format. In the post, we are to use OpenCSV library to write data in CSV format. OpenC...

How to turn off CORS for a Spring server application

Overview Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a...

How to use Spring Cloud Stream functional approach

Overview We are going to describe how to create an application with Spring Cloud Stream functional approach. Previously, we reviewed how to use the old way or so-called annotation-based approach. ...

How to use Spring Cloud Stream functional annotation-based approach

Overview We are going to describe how to create an application with Spring Cloud Stream. I have to mention that Spring Cloud Stream has a new way to describe message endpoints since 3.0. The new w...

How to use GitHub Actions

Overview In the post, we are going to review GitHub Actions. GitHub Actions Overview Firstly, we are going to look at GitHub Actions. It is a CI and CD engine from GitHub. It is very easy to se...

How to create a simple Spring server application with React frontend

Overview In the post, we are going to create a simple Spring server application with Gradle build system with React frontend. Hello World server application Firstly, we are going to create a sim...

How to deploy a java docker app with a database into the cloud

Overview There are lots of popular cloud services nowadays. We are going to review one of them. It’s Heroku. In the post, we are going to discuss how to deploy a java docker app with a postgres d...

Hibernate one-to-one unidirectional relationship

Overview We could handle a one-to-one relationship in a database with the help of one-to-one bidirectional or unidirectional hibernate relationships. In the post, we are going to discuss a one-to-...

Hibernate one-to-one bidirectional relationship

Overview We could handle a one-to-one relationship in a database with the help of one-to-one bidirectional or unidirectional hibernate relationships. In the post, we are going to discuss a one-to-...