Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Thursday, September 12, 2024

Upload files to Firebase Hosting with Java

Sometimes you might need a Java based solution to upload files to Firebase Hosting to publish your recently generated static files. 

For instance, I use Firebase Hosting to store JSON data files generated by AWS Lambda functions (written in Java+Spring Cloud Function), and these files will be loaded into a mobile app.

This is when "firebase-hosting-api-java" open source library comes into the picture.

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.

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.

Monday, November 19, 2018

Spring Boot Slack integration

In this tutorial we'll discuss the integration of Slack into a Spring Boot 2 based web application.

Wednesday, December 6, 2017

Minimize CSS & JS resources with cssjs-minifier

In this article I'll introduce to you one of my newest app called cssjs-minifier. I developed it for myself first, but then I make it open source through GitHub for helping other web developers.

Mini-http-server for local Angular JS & other framework web development

In this article I'll introduce to you one of my newest app called mini-http-server. I developed it for myself first, but then I make it open source through GitHub for helping other Angular JS ( or other JS framework) developers.

Friday, November 3, 2017

Create a small HTTPS server with Java 7 & Jetty

Sometimes in web development we need a small webserver to test our product in a browser. Of course there are several implementations (WAMP, XAMP, etc.), but as a Java developer we don’t want PHP or MySQL to our PC. In this tutorial we’ll create a runnable JAR, which’ll serves our HTTP / HTTPS requests.

Saturday, December 26, 2015

Creating a MySQL datasource for JBoss 7.1

In this tutorial we’ll create a MySQL datasource for JBoss Application Server 7.1. I recommend you to read the article listed in the “Useful article” section, because a MySQL driver is required for our datasource.

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...