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

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

内容简介: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

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

查看所有标签

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

Linux Device Drivers

Linux Device Drivers

Jonathan Corbet、Alessandro Rubini、Greg Kroah-Hartman / O'Reilly Media / 2005-2-17 / USD 39.95

Device drivers literally drive everything you're interested in--disks, monitors, keyboards, modems--everything outside the computer chip and memory. And writing device drivers is one of the few areas ......一起来看看 《Linux Device Drivers》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具