【spring boot】第6篇:spring boot 对 spring mvc 的支持

栏目: Java · 发布时间: 6年前

内容简介:spring boot 启动时会对 spring mvc 做自动配置,默认的配置功能在

spring mvc 自动配置

spring boot 启动时会对 spring mvc 做自动配置,默认的配置功能在 org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration 中进行了说明。有以下功能:

  • 包含 ContentNegotiatingViewResolverBeanNameViewResolver

    ContentNegotiatingViewResolver
    BeanNameViewResolver
    
  • 支持对静态资源
  • 自动注册 ConverterGenericConverterFormatter

    Converter
    GenericConverter
    Formatter
    
  • Support for HttpMessageConverters (covered later in this document).
  • 自动注册 MessageCodesResolver
  • 支持静态欢迎首页 index.html
  • 支持自定义 favicon 图标
  • 自动使用 ConfigurableWebBindingInitializer

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Scalability Rules

Scalability Rules

Martin L. Abbott、Michael T. Fisher / Addison-Wesley Professional / 2011-5-15 / USD 29.99

"Once again, Abbott and Fisher provide a book that I'll be giving to our engineers. It's an essential read for anyone dealing with scaling an online business." --Chris Lalonde, VP, Technical Operatio......一起来看看 《Scalability Rules》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器