我真的需要学习所有控制器classess吗?

时间:2017-05-12 17:32:47

标签: spring spring-mvc

我开始学习spring MVC并且在控制器中有以下14个类的列表:

  1. SimpleFormController
  2. 一个AbstractController
  3. AbstractCommandController
  4. CancellableFormController
  5. AbstractCommandController
  6. 的MultiActionController
  7. ParameterizableViewController的
  8. ServletForwardingController
  9. ServletWrappingController
  10. UrlFilenameViewController会
  11. 一个AbstractController
  12. AbstractCommandController
  13. SimpleFormController
  14. CancellableFormController
  15. 我真的需要经历所有这些吗?还是 @Controller(ieMultiActionController)就足够了? 我认为所有这些类都属于Spring框架的旧版本,现在我们不需要学习它们。需要指导。

1 个答案:

答案 0 :(得分:0)

我的Spring Boot项目只有c:\ffmpeg\bin>ffmpeg -i http://lyd.nrk.no/nrk_radio_mp3_mp3_l -ac 1 -acodec g722 -f rtp -ab 64k -ar 16k rtp://192.168.0.99:555 ffmpeg version N-85750-ga75ef15 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 88.100 / 6. 88.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, mp3, from 'http://lyd.nrk.no/nrk_radio_mp3_mp3_l': Metadata: icy-name : NRK mP3 icy-pub : 1 Duration: N/A, start: 0.000000, bitrate: 96 kb/s Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16p, 96 kb/s [udp @ 000000000244bec0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 00000000024781a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) Stream mapping: Stream #0:0 -> #0:0 (mp3 (native) -> adpcm_g722 (g722)) Press [q] to stop, [?] for help Output #0, rtp, to 'rtp://192.168.0.99:555': Metadata: icy-name : NRK mP3 icy-pub : 1 encoder : Lavf57.72.101 Stream #0:0: Audio: adpcm_g722 (g722), 16000 Hz, mono, s16, 64 kb/s Metadata: encoder : Lavc57.93.100 g722 SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 192.168.0.99 t=0 0 a=tool:libavformat 57.72.101 m=audio 555 RTP/AVP 9 b=AS:64 size= 413kB time=00:00:49.17 bitrate= 68.8kbits/s speed=1.43x 。 我想不出你需要担心哪个类是由注释自动连接的情况,除非你需要为使用该特定控制器的特定应用程序流编写自己的实现。而且,我再也没有这样做过。我只有1年的生产经验,所以请记住这一点。