
Tag archives for apache
Hi,
Here, a simple java example using the Apache Commons Configuration library. The Apache Commons Configuration software library provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources.Some resources:https://commons.apache.org/proper/commons-configuration/https://commons.apache.org/proper/commons-configuration/userguide/quick_start.htmlA simple file properties myfile.properties:
We need the librairies commons-configuration-1.5.jar and commons-collections-3.2.jar:
The outputs are:
Others solutions
An other solution without Apache would be the use of Java ...more»
Hi,
Here are some libraries for generating beans automatically in the context of unit testing with the properties set.
Random-beans : https://github.com/benas/random-beans/wiki - https://github.com/benas/random-beans
Apache bean utils : http://commons.apache.org/proper/commons-beanutils/ - http://www.javadb.com/simple-dynabean-example-apache-commons-beanutils/
Mockito http://mockito.org/
That's all!!!
Huseyin OZVEREN ...more»
Hello,
After my previous article Example of mail generation (MSGParser, Apache POI-HSMF) concerning the generation of a mail file on server side, I would expose you an example of XLS (Excel) generation by using the Apache POI.
Introduction
The Apache POI Project's mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) ...more»
Hi,
It's my first post of this year, after my first post concerning the library Apache Velocity Simple Presentation of Velocity, I would expose you an article about simple example of use of Velocity. A memo to use speedly Velocity.
First, our project needs the following jars to the classpath of your project:
velocity-1.7.jar
velocity-tools-2.0.jar
It is necessary to initialize Velocity, via the method Velocity.init(...) ...more»
