Application Deployment Strategies

There are number of strategies deploy application in to production environment. Today we are going to test all these different strategies in OpenShift platform.(I am using mini version of OpenShift called MiniShift in my mac)

Read More

Java 12 features

Preview Feature - This feature enables to use features which are not finalized or not really ready, this might be ready in upcoming releases.

Read More

Load files from folders as a resources using spring

Here is the code snippet to load files from classpath

@Autowired
private ResourceLoader resourceLoader;
Resource[] resources  = ResourcePatternUtils.getResourcePatternResolver(resourceLoader).getResources
    ("classpath*:data/*.json");

and make sure you import spring libraries

import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.io.support.ResourcePatternUtils;
Read More

Mirror multiple repositories in maven settings.xml

Here is the configuration to enable multiple mirrors in maven (settings.xml). Mirrors block

<mirrors>
    <mirror>
        <id>nexus</id>
        <mirrorOf>*</mirrorOf>
        <url>https://nexus.organization.com/nexus/content/groups/CLM</url>
    </mirror>
    <mirror>
        <id>art</id>
        <mirrorOf>artifactory</mirrorOf>
        <url>https://artifactory.organization/artifactory/maven-internalfacing</url>
    </mirror>
</mirrors>
Read More