初识spring boot maven管理--SpringMVC

springboot完美的支持了springmvc,自家东西当然是支持最好的啦!

@EnableAutoConfiguration自动注入了一下信息

1、包含了ContentNegotiatingViewResolver,BeanNameViewResolver两个bean

2、支持服务器静态资源,包括对WebJars的支持

3、自动注入了Converter、GenericConverter、Formatter

4、支持HttpMessageConverters

5、支持静态index.html

6、支持自定义网站图标


如果不想使用springboot对springMVC进行管理,而是使用springMVC,只需要在标注@Configuration的类上添加注解@EnableWebMvc. 这样控制权就跑到了

springmvc上了!

posted @ 2014-04-15 09:48  小小架构师  阅读(148)  评论(0编辑  收藏  举报