摘要: 一、SpringMVC基础入门,创建一个HelloWorld程序 1.首先,导入SpringMVC需要的jar包。 2.添加Web.xml配置文件中关于SpringMVC的配置 <!--configure the setting of springmvcDispatcherServlet and c 阅读全文
posted @ 2017-06-05 11:07 lszan 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Spring学习笔记(1) 简单的实例 首先需要准备Spring包,可从官方网站上下载。 下载解压后,必须的两个包是spring.jar和commons-logging.jar。此外为了便于测试加入了JUnit包。 在Myeclipse中创建Java项目。 编写一个接口类,为了简单,只加入了一个方法 阅读全文
posted @ 2017-06-04 20:30 lszan 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 如果是post,在web.xml中加上 < filter> < filter-name>CharacterEncodingFilter</filter-name> < filter-class>org.springframework.web.filter.CharacterEncodingFilte 阅读全文
posted @ 2017-06-03 15:59 lszan 阅读(96) 评论(0) 推荐(0) 编辑