![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springMVC
该取什么呢
这个作者很懒,什么都没留下…
展开
-
springMVC学习(1)----一个简单的Maven的springMVC项目搭建
1、导入SpringMVC需要的jar包(下面代码放在pom.xml中,maven使用的是阿里云镜像) <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframew...原创 2019-05-30 01:29:39 · 119 阅读 · 0 评论 -
SpringMVC常用注解(4)-------Model,ModelMap,ModelAndView
ModelAndView ModeAndView既包含模型数据信息,也包含视图信息。SpringMVC将使用包含的视图对模型数据进行渲染,可以简单地将模型数据看成一个Map<String,Object>对象。 可以使用ModelAndView对象的如下方法添加模型数据: addObject(String attributeName,Object attributeValue); ...原创 2019-07-07 17:42:11 · 228 阅读 · 0 评论