Skip to main content

Posts

Showing posts from February, 2023

Spring Boot Introduction

INTRODUCTION: 1. The first point to note is that spring framework is to make J2EE application development easier 2. The main objective of spring boot is to make Spring Application development was easier. 3. Spring Boot versions are different from spring version. Spring Application Development Drawbacks: • The first drawback is the dependency version compatibility issues. • Then the boiler plate code is an another problem. • Then there will be lot of manual configurations. • For framework related classes we don't have the source code so we need the Bean configuration. • Time consumption and complexity is high is there. • Difficult for new comers to try out the spring features. 1. To overcome all these problems spring introduced a module called spring boot. 2. Spring boot does not replace spring framework i.e. It is one of the module like core, MVC, etc.. 3. Using spring we can develop a good application but it will take more time than boot applications. 4. ...

Spring MVC Introduction:

 It is one of the frame work in the spring where it is used to develop web applications and distributed application. As there is servlets and jsp is in place to develop the web applications. But what is the need of spring MVC. But the problem in the normal servlet and jsp we need to write lots of boiler plate code. So the Spring MVC framework will reduce totally the boiler plate code. The Boiler plate code is the code which is common for all the classes is called the boiler plate code. In the project if there is 100 servlets then there should be 100 java beans will be prepared by the developer. This will cause the mixing of business logic and presentation logic which means we write the both the logics in same file so that it is difficult to modify the source code if the developer wants. Spring MVC Advantages: Spring MVC will remove the boiler plate code using the Front controller(Dispatcher Servlet). It will separate the Business logic and presentation logic. MODEL(M) VIEW(V) CONTR...