JAVA_Spring
文章平均质量分 78
风行天下Num1
以IT为生
展开
-
Spring 集成步骤
第一步:配置web.xml 文件,监听Spring和对Spring配置文件applicationContext的读取contextConfigLocationclasspath*:applicationContext.xmlorg.springframework.web.context.ContextLoaderListener第二步:配置app原创 2016-07-19 16:04:32 · 338 阅读 · 0 评论 -
SpringMVC 基础配置
第一步:web.xmL 中配置转发器SpringMVCorg.springframework.web.servlet.DispatcherServletcontextConfigLocationclasspath:spring-mvc.xml -->classpath:springAnnotation-mvc.xml1trueSp原创 2016-07-19 11:44:00 · 351 阅读 · 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 · 274 阅读 · 0 评论