Author: Mingch

Mingch is a software engineer who helps startups on software development. My expertise offer in mobile development, web development projects, as well as private consultations.

Create maven multi module project

Create maven multi module project

Simple way 1. Create parent project to your favour workspace directory. mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE 2. Enter the details like groupId, artifactId, version and etc 3. CD to your parent project directory 4. Create modular project, such as persistent

Spring embeded database

Example 1, using H2 <jdbc:embeded-database id=”datasource” type=”H2″> <jdbc:script location=”classpath:jdbc/schema.sql”/> <jdbc:script location=”classpath:jdbc/test-data.sql”/> </jdbc:embeded> Example 2, <bean id=”dataSource” class=”org.springframework.jdbc.datasource.embeddedDatabaseFactoryBean”> <property name=”databasePopulator” ref=”populator”/> </bean> <bean id=”populator” class=”org.springframework.jdbc.datasource.init.ResourceDatabasePopulator”> <property name=”scripts”> <list> <value>classpath:jdbc/schema.sql</value> </list> </property> </bean>

(Wro) Web Resource Optimizer Tutorial

Wro Filter Adding the following filter configuration to Web.xml <!– WRO4J config –> <filter> <filter-name>WebResourceOptimizer</filter-name> <filter-class>ro.isdc.wro.http.WroFilter</filter-class> <init-param> <param-name>configuration</param-name> <param-value>DEVELOPMENT</param-value> </init-param> <init-param> <param-name>gzipResources</param-name> <param-value>TRUE</param-value> </init-param> <init-param> <param-name>cacheUpdatePeriod</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>modelUpdatePeriod</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>jmxEnabled</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>mbeanName</param-name> <param-value>Systec</param-value> </init-param>