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 More

Tags:

by , on September 20th, 2017

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

by , on August 28th, 2017

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

by , on August 25th, 2017

Posted In: Apache, Commons, Security

How to encrypt Password/String using Apache Crypto

Apache Crypto library Maven commons-crypto Original Example

Read More

by , on August 24th, 2017

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

by , on August 24th, 2017

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 More

Tags:

by , on March 5th, 2017

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 More

Tags: , , , ,

by , on January 17th, 2017

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 More

Tags: , , , ,

by , on January 17th, 2017

  • Categories