摘要: 什么时候spring容器启动?其实就是程序中执行加载 web.xml配置文件的时候。Spring可以通过(Servlet)org.springframework.web.context.ContextLoaderServlet和Listener(org.springframework.web.context.ContextLoaderListener)两个类作为Spring启动的入口。1.应用程序下加载ApplicationContext context = new FileSystemXmlApplicationContext("WebRoot/WEB-INF/applicatio 阅读全文
posted @ 2011-04-28 15:23 Blue Sky ...... 阅读(1261) 评论(0) 推荐(0) 编辑
摘要: <?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema 阅读全文
posted @ 2011-04-28 14:14 Blue Sky ...... 阅读(635) 评论(0) 推荐(0) 编辑