<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                Spring Boot 自動配置好了SpringMVC 以下是SpringBoot對SpringMVC的默認配置:**==(WebMvcAutoConfiguration)==** - Inclusion of `ContentNegotiatingViewResolver` and `BeanNameViewResolver` beans. - 自動配置了ViewResolver(視圖解析器:根據方法的返回值得到視圖對象(View),視圖對象決定如何渲染(轉發?重定向?)) - ContentNegotiatingViewResolver:組合所有的視圖解析器的; - ==如何定制:我們可以自己給容器中添加一個視圖解析器;自動的將其組合進來;== - Support for serving static resources, including support for WebJars (see below).靜態資源文件夾路徑,webjars - Static `index.html` support. 靜態首頁訪問 - Custom `Favicon` support (see below). favicon.ico ? - 自動注冊了 of `Converter`, `GenericConverter`, `Formatter` beans. - Converter:轉換器; public String hello(User user):類型轉換使用Converter - `Formatter` 格式化器; 2017.12.17===Date; ```java @Bean @ConditionalOnProperty(prefix = "spring.mvc", name = "date-format")//在文件中配置日期格式化的規則 public Formatter<Date> dateFormatter() { return new DateFormatter(this.mvcProperties.getDateFormat());//日期格式化組件 } ``` ? ==自己添加的格式化器轉換器,我們只需要放在容器中即可== - Support for `HttpMessageConverters` (see below). - HttpMessageConverter:SpringMVC用來轉換Http請求和響應的;User---Json; - `HttpMessageConverters` 是從容器中確定;獲取所有的HttpMessageConverter; ==自己給容器中添加HttpMessageConverter,只需要將自己的組件注冊容器中(@Bean,@Component)== ? - Automatic registration of `MessageCodesResolver` (see below).定義錯誤代碼生成規則 - Automatic use of a `ConfigurableWebBindingInitializer` bean (see below). ==我們可以配置一個ConfigurableWebBindingInitializer來替換默認的;(添加到容器)== ``` 初始化WebDataBinder; 請求數據=====JavaBean; ``` **org.springframework.boot.autoconfigure.web:web的所有自動場景;** If you want to keep Spring Boot MVC features, and you just want to add additional [MVC configuration](https://docs.spring.io/spring/docs/4.3.14.RELEASE/spring-framework-reference/htmlsingle#mvc) (interceptors, formatters, view controllers etc.) you can add your own `@Configuration` class of type `WebMvcConfigurerAdapter`, but **without** `@EnableWebMvc`. If you wish to provide custom instances of `RequestMappingHandlerMapping`, `RequestMappingHandlerAdapter` or `ExceptionHandlerExceptionResolver` you can declare a `WebMvcRegistrationsAdapter` instance providing such components. If you want to take complete control of Spring MVC, you can add your own `@Configuration` annotated with `@EnableWebMvc`.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看