In this tutorial, i will share you how to do checksum using MessageDigest in JAVA. Below my code: 1 2 3 4 5 6
Read MoreCategory: JAVA
Sample Decompression In JAVA (Using Apache Common Compress)
In this tutorial, i will share to you how to extract zip, 7z, gzip tar and tar-gz in java. below my code: 1 2
Read MoreSample Samba Connection in JAVA
In this tutorial, i will share to you how to create folder, copy file to samba and move file in samba. Below my code:
Read MoreMultiple DockerFile using Docker-Compose
In this tutorial, i will show to you how to create multiple image and container with combining docker file into single docke-compose file. my
Read MoreDynamic Artifact Id Name in Maven
In this tutorial, i will give you an example how to create Artifact Id dynamically using maven. below my pom.xml: <groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId> <version>0.1.0</version><groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId>
Read MoreHow To Include All Dependencies Jar into Main Jar Maven
My pom.xml : <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/classes/lib</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin>
Read MoreHow to Call Oracle Procedure (With Return Query) in JAVA
My Oracle Procedure : CREATE OR REPLACE PROCEDURE USPS_GET_DATA (PRC OUT SYS_REFCURSOR) AS BEGIN OPEN PRC FOR SELECT * FROM TBLM_DATA; END;create or replace
Read More
How To Connect JAVA To MongoDB
In this tutorial, I want to share my experience in connecting JAVA to MongoDB. My maven dependencies: <dependency> <groupId>org.mongodb</groupId> <artifactId>mongodb-driver</artifactId> <version>3.9.0</version> </dependency> <dependency> <groupId>org.mongodb</groupId>
Read More
JAVA Web Crawler Using Jsoup
In this tutorial, I want to share my learning experience about web crawler using jsoup framework. For the beginning, I write a simple code
Read MoreSample Encrypt & Decrypt String in Java
In this tutorial, i will give a simple example how i encrypt & decrypt string with JAVA. Below my code: import java.util.Base64; import javax.crypto.Cipher;
Read More