Most recently I’ve tried to Integrate Firebase Push Notifications into a Vaadin Web App and I ended up – getting it – working – on Mobile. Here’s an overview of the steps I’ve done. Using Vaadin’s built-in support for @Push Notifications Vaadin provides ability to “Push” content onto the browser from your server. If you…
Category: Spring
what is DTO in Spring Boot
In Spring Boot, a DTO or Data Transfer Object is a simple Java object that is used to transfer data between different layers of an application. DTOs are often used to encapsulate the data that needs to be transferred from one subsystem of an application to another: from database to the service layer from service…
Latest Trends you could code with Java Spring Boot
Java Spring Boot is a powerful framework for building microservices, web applications, and enterprise-level solutions and its popularity is well-suited to several of the latest trends in software development. Here’s how you can leverage Spring Boot to explore these trends, along with relevant libraries and resources: 1. API-First Architecture Libraries: Spring Boot Starter Web: For…
How to replace System.out.println with proper logging in Spring Boot
Replacing System.out.println with proper logging in a Spring Boot application is a good practice as it provides better control over log output, supports different log levels, and integrates well with various monitoring tools. Spring Boot uses SLF4J (Simple Logging Facade for Java) as an abstraction for various logging frameworks, typically Logback by default. Step by…
What items are Required & Integrated to a Spring Boot Project
When starting a new Spring Boot project, several core components and dependencies are essential to include, depending on the project’s requirements and goals. Here are some key items that are generally considered “must-haves” for a typical Spring Boot application: 1. Spring Boot Starters Spring Boot Starters are convenient dependency descriptors to simplify your project’s build…
How to File Upload – Java API with no external libs or Spring Boot
To upload a file using Java without external libraries, you can use the standard Java I/O and networking classes. Below is a step-by-step guide and an example of how to accomplish this: Set up the HTTP Connection: Use HttpURLConnection to create a connection to the server. Set the request method to POST. Set the Content-Type…
CI/CD for App Distribution – Spring Boot – Vaadin App
Here are the steps I’ve executed on a remote personal machine to set up CI/CD for my App Distribution – Spring Boot – Vaadin App. On Remote Personal Machine 1) define remote git repositorycd git/mkdir my_appcd my_app/git init –barepwd //outputs the current directory Git Hook cd hooksedit post-updatecurl to Jenkins with custom tokenmake post-update executable…
Platform & Library Dependencies – Developer Hell for Integration and Testing
Integrating with Platform and Library Dependencies is a Developer Hell for Coding, Integration and Testing. You must overcome million obsticles , dive deep into technical details to come up with solutions or at least workarounds. Long time ago – in a galaxy far, far away – I’ve integrated into Liferay Portlet, Struts 2 Framework, Google…
Architecture Standards in all Programming Ends
Standards in Architecture across backend microservices, front-end and mobile apps has a lot of benefits in Programming, software development and beyond. In purely coding perspective – it is crucial for ensuring consistency, scalability, and maintainability in a software ecosystem. It allows new members to enter and be productive fast. New applications may be produced in…
How to Read a File lazyly Line by Line with Java
In Java, you can use the Files.lines() method along with the Stream API to read a file lazily line by line. This approach is efficient for large files, as it reads and processes the file on demand rather than loading the entire file into memory. Here’s an example: import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import…