
JAVA_Spring
文章平均质量分 78
风行天下Num1
以IT为生
展开
-
Spring 集成步骤
第一步:配置web.xml 文件,监听Spring和对Spring配置文件applicationContext的读取 contextConfigLocation classpath*:applicationContext.xml org.springframework.web.context.ContextLoaderListener 第二步:配置app原创 2016-07-19 16:04:32 · 377 阅读 · 0 评论 -
SpringMVC 基础配置
第一步:web.xmL 中配置转发器 SpringMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:spring-mvc.xml --> classpath:springAnnotation-mvc.xml 1 true Sp原创 2016-07-19 11:44:00 · 376 阅读 · 0 评论 -
Spring MVC 上传文件两种方式
1。页面设置 表单中method="post" enctype="multipart/form-data" 上传控件中 type="file" name="file" 2.在XML中配置文件解析器 3.后台解析文件。 //通过xml 中id为multipartResolver的解析器,把上传的name属性值为file文件解析成CommonsMultipartFil原创 2016-07-19 00:44:44 · 297 阅读 · 0 评论