Wednesday, September 11, 2024

Spring Boot Testing tips: Check integration test existence for REST Controllers

Code quality and unit/integration testing is extremely important in software development, especially when a software gets larger and larger and it can be challenging to maintain which service has tests.

In this short article I'd like to present a way how you can validate that all of your application's endpoint has an integration test, but of course the method can be applied to other layers(e.g.: service) of the system as well.

Tuesday, September 10, 2024

Spring Boot request and response logging with sensitive data masking

 Enterprise Java (or any other) applications ofter requires logging of request and response bodies to investigate any upcoming issue. Logging these payloads are easy-peasy, but what should we do with any sensitive data inside those payloads? In this short article I'd like to share a solution with Spring Boot that is used in most large enterprise companies to log their incoming and outgoing messages in a secure and regulated way.

Wednesday, September 4, 2024

PostgreSQL instance on Windows with Docker Desktop

Running a database instance on your development environment is crucial, when you need a stable RDBMS for software development. Now we'll discuss how to install and configure a PostgreSQL instance with Docker Desktop on Windows.

Friday, January 1, 2021

How I automated my tasks with AWS

In this article I want to describe how Amazon Web Services helped me to automate my tasks.

I have an Android application which provides parking information for the users. A scheduled Android job checks for updates every 4 hours. Updates can be found in a static Json file hosted on Firebase Hosting. This Json file has a specific structure, but it differs from the source, where all data comes from. There is another file called config.json which contains the version number of the data. Although it's a cost-effective way to store minimum amount of data, but it was a pain in the ass to maintain it.

Tuesday, December 29, 2020

Create deployment to Firebase Hosting with Java

In this article I'd like to introduce "firebase-hosting-api-java", which is an API library for Firebase Hosting REST API written in Java 8. It supports all available V1Beta1 services, such as query the releases, delete deployment versions and so on. From version 0.4, theres a common service called createDeploy(), which is a combination of all deployment related function, and this is the recommended function for deployment.

Saturday, November 7, 2020

Useful Enterprise Java resources

 I've collected a huge list of useful URL's related to Java EE development. The collection is not complete :)

https://github.com/szrnka-peter/JavaEEResources

Monday, August 12, 2019

Proxy connection manager service for Spring Boot

In some special cases, like company security policies, our services are blocked by firewalls, the only chance to use the internet connection for our software is to setup an HTTP/HTTPS/FTP/etc. proxy connection. In this article I'll introduce my idea to solve this problem, when our webservices based on Spring Boot.

With this, we don't have to deal with system properties: (https://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html).

Configure and use VSCode for Java web development

Embarking on Java web development often starts with choosing the right tools that streamline the coding process while enhancing productivity...