
Posted In: Apache, Commons
How to download large files using Apache commons IO
Apache IOUtils is already taking care of large files. Comments from IOUtils FileUtils.copyURLToFile
Read MoreTags: Download


Posted In: Apache, Spark
How to set up Spark on Windows
There are two options to run Spark. Run it on spark-shell or through Java Code in Eclipse 1. spark-shell – Software required 1. Install JDK 1.8 2. Download spark-2.2.0-bin-hadoop2.7.tgz 3. Download winutils.exe 4. Create /tmp/hive/ folder. 5. Add or set commands 4. Run spark-shell Step 1 – Install JDK and set JAVA_HOME Step 2 – […]
Read More
Posted In: Apache, Server, Tomcat, Tomcat
How to save uploaded files in a enterprise application
Before writing about how to upload file developer needs to consider how to choose location to upload the file. 1. Not clustered environment – Basic file system Case 1 – Uploading files to Web root This is easiest solution to implement. Developer will be tempted to do this. E.G. Application is deployed at location […]
Read More
Posted In: Apache, Commons, Security
How to encrypt Password/String using Apache Crypto
Apache Crypto library Maven commons-crypto Original Example
Read More
Posted In: Apache, Commons, Security
How to encrypt Password/String using Apache Codec
Apache codec provide multiple methods to encrypt a string Maven commons-codec
Read More
Posted In: Apache, Spring, Spring Boot, Tomcat
How to increase Spring boot/Tomcat max file upload size
Change multipart settings in spring boot application.properties This setting will surely work when you are running it with embedded TOMCAT. Will it work if you create WAR and deploy it to standalone TOMCAT? Answer is YES. I created separate WAR file and tested it in standalone TOMCAT. Setting do work correctly.
Read MoreTags: Fileupload

Posted In: Maven
Maven + Eclipse + Servlet3 + Tomcat9 – Best way to create Servlet3 maven project using eclipse
There are multiple articles on Web on how to set up maven web project in eclipse. Most of these articles do it through external maven installation and use maven-archtype-webapp. Problem with this approach is you may not have external maven in organization and usually is not allowed with out approval. Then there is problem of […]
Read MoreTags: Eclipse, Maven, Neon, Servlet3, Tomcat9

Posted In: Maven
Problem with Maven + Servlet3 + archetype-webapp and how to solve it
There are multiple articles on Web on how to set up maven web project in eclipse. Most of these articles do it through external maven installation and use maven-archtype-webapp. Problem with this approach is you may not have external maven in organization and usually is not allowed with out approval. Then there is problem of […]
Read MoreTags: Archetype, Eclipse, Maven, Neon, Servlet3

Posted In: Struts
Struts2 validation and internationalization i18n example
Struts2 Validation and i18n
Read MoreTags: Internationalization, struts2, Validation
- Apache (13)
- Build Tools (2)
- Gradle (2)
- Caching (1)
- cpanel (1)
- cURL (1)
- Database (7)
- Hibernate (5)
- Java Core (38)
- Java Script (15)
- Bootstrap (1)
- File Upload (7)
- jQuery (3)
- React (3)
- JEE (13)
- JSON (41)
- GSON (13)
- Jackson 1X (1)
- Jackson 2X (12)
- jsoniter (1)
- Logging (2)
- Apache Commons Logging (1)
- Apache Log4J (1)
- Logback (1)
- SLF4J (1)
- MongoDB (1)
- OS (1)
- Linux (1)
- Security (5)
- Server (4)
- Tomcat (4)
- Service (2)
- Micro (2)
- Spring (46)
- Pattern (2)
- Spring Boot (20)
- Spring Data (4)
- Spring MVC (8)
- Spring REST (13)
- Spring Security (7)
- Testing (11)
- XML (5)
- JDOM XML Parser (1)