Quick Reference

Spring Usage

String[] springXmlFileLocations = ..;
ClassPathXmlApplicationContext ctxt = new ClassPathXmlApplicationContext(springXmlFileLocations);
Object profile = ctxt.getBean(instanceBeanName);

Maven plugin without project
@requiresProject false

Spring XML Header
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd">



Comments