problem description
applicationContext.xmlbean@AutowirednullApplicationContext ctx = new ClassPathXmlApplicationContext("conf/spring/applicationContext.xml");ctx.getBean()
related codes
<bean id="dalClient" class="com.zhl.framework.dal.client.support.DefaultDalClient">
<property name="resources" value="classpath:sqlmapper/sqlMap_*.xml" />
<property name="defaultDataSource" ref="dataSource" />
</bean>
this is an encapsulated method to access sql files
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:conf/spring/spring-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
this is the web configuration