what is the difference between Spring and Spring MVC framework

后端 未结 7 619
后悔当初
后悔当初 2021-01-30 01:21

I am new to Spring. Can any one let me know what is the difference between Spring and Spring MVC Framework ?

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 02:15

    Spring MVC is one component within the whole Spring Framework, to support development of web applications. You can use any web containers, so it works fine with Tomcat. Just think that Spring is a third party library. You just need to put the necessary jar files in the lib directory, and define a few xml files.

    So basically when you just say Spring it is a just a framework. And by framework I mean lot of functionalities/jars. Like you may have core which has core functionality or aspectj etc. Spring MVC i.e model view controller is one such functionality offered by Spring framework. You can deffer processing of request to various controllers based on the pattern of URL requested. You can refer

    Spring MVC hello world example

提交回复
热议问题