The below code shows hot to read the list of resources(files) from a classpath folder and subfolder.Below is the example code
import java.io.*;
import java.net.URL;
import java.nio.file.Files;
import java.util.*;
public class ReadResourceFiles {
public static void main(String[] args) throws IOException {
...
undefined
202
In this blog, lets check how we can push the data to solace mq or solace queue using JMS. Message queues are the endpoints which guarantees you the delivery of a message without fail.So to implement the Java code to push messages, first add the below dependency in pom.xml file if you are using the maven project in...
undefined
202
Before going further lets talk about Log Forging or JVM Log Forging. Log ForgingAccording to OWASP , writing invalidated logs can allow attackers to forge log or inject malicious content in log file. Log forging is when attackers tries to add/modify the log content by exploring the security loopholes of...
undefined
202
The ExecutorService interface, executes tasks in parallel in background and represents an asynchronous execution mechanism. The ExecutorService create and maintain the reusable thread pool.How to create ExecutorService?To create ExecutorService, you can use Executors factory to create the instance of ExecutorService....
undefined
202
We have setup the development setup of angular in angular-installation blog. Now in this blog, lets start a new project and lets see how we can create a new project in Angular.
How we can create a new project in Angular?
To create a new project, open Angular CLI and type below mentioned command and press enter....