Total 71 Posts

## Java: Read a File into an ArrayList

### Introduction

There are many ways to go about Reading and Writing Files in Java.

We typically have some data in memory, on which we perform operations, and then persist in a file. However, if we want to change that information, we need to put the contents of the file back

## Securing Spring Boot Web Applications

This article applies to sites created with the Spring Boot framework. We will be discussing the following four methods to add additional layers of security to Spring Boot apps:

• Preventing SQL Injection using Parameterized Queries
• URL Parameter Input Validation
• Form Field Input Validation
• Output Encoding to Prevent Reflected XSS Attacks

## The try-with-resources Statement in Java

### Introduction

try-with-resources is one of the several try statements in Java, aimed to relieve developers of the obligation to release resources used in a try block.

It was initially introduced in Java 7 and the whole idea behind it was that the developer doesn't need to worry about resource management

## Spring Cloud: Routing with Zuul and Gateway

### Overview

In this article, we'll introduce you to routing your applications via Netflix's Zuul and Spring Cloud Gateway.

In a typical microservice architecture we have many small applications running on different hosts and ports. The problem in this type of architecture is how clients (Web Applications in browsers, Mobile apps,

## Sorting Algorithms in Java

### Introduction

Sorting data means arranging it in a certain order, often in an array-like data structure. You can use various ordering criteria, common ones being sorting numbers from least to greatest or vice-versa, or sorting strings lexicographically. You can even define your own criteria, and we'll go into practical ways