随笔分类 -  Spring

摘要:1.利用ClassPathXmlApplicationContext可以从classpath中读取XML文件(1)ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); U... 阅读全文
posted @ 2012-12-16 17:29 Pocter 阅读(199) 评论(0) 推荐(0)
摘要:XmlWebApplicationContext是spring在web应用中的context,在ContextLoaderListener或ContextLoaderServlet中完成了初步的设置。XmlWebApplicationContext跟其他的applicationContext(Fil... 阅读全文
posted @ 2011-09-13 22:32 Pocter 阅读(533) 评论(0) 推荐(0)
摘要:一、基于浏览器语言的国际化配置使用Spring的MVC,并且配置中有配置Resource文件xml 代码 其中,message-info是你的properties文件的通用名。如:我的配置文件叫message-info.properties,message-info_zh_CN.pro... 阅读全文
posted @ 2011-08-21 12:07 Pocter 阅读(394) 评论(0) 推荐(0)