File: context.xml
"http://www.springframework.org/dtd/spring-beans.dtd">
class="JdbcMatchDao">
File: Main.java
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
public class Main {
public static void main(String[] args) throws Exception {
ConfigurableListableBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource(
"context.xml"));
}
}
Spring-ConfigBasicDataSource.zip( 2,598 k)