Posts

Showing posts from July, 2020

Spring Boot vs Spring MVC

Image
Spring Boot vs Spring MVC Spring Boot Spring boot is a module of Spring Framework. With Spring Boot,we can build spring powered application with minimal configuration. Auto configuration is done. Its avoids boiler plate code and wraps the dependencies together in a single unit. It reduces development time and increase productivity.  Spring MVC Spring MVC defines a model view controller based web framework. With Spring MVC we have  to import the required library in our project. Required to build configuration manually. Dependencies are separated. It requires more time for development. In this post, hope you all understand the major difference between Spring Boot and Spring MVC.

Creating Simple Spring Boot Application Using STS In Eclipse

Image
In this post we will learn how to create a simple Spring Boot application using STS in Eclipse IDE. Developing Spring Boot Application using STS  Step 1:Once STS installed in eclipse,Click on file-->new-->other-->select Spring Starter project--->next refer below snapshot. Step 2:After clicking on next ,you can see new Spring Starter projec t ,here you can add  Group Artifact Version Description Package Java version Packaging Language make sure you select Maven as Type and click next,refer below snapshot Step 3:In the next screen shows up  ,select the dependencies that you want to add Spring Boot project and click on finish refer the below snapshot. Here i have selected web and dependencies for my project. Step 4: Now new Spring Boot project will get created with the dependencies we have added as shown below TechyGrit project created Step 5:The Spring Boot projects will have below files 1. SpringBootStarter java class, in this example - TechyGritApplication.ja...

Creating a Spring Boot project with Spring Initializer

Image
Spring Initializer    Spring Initializer tool makes it easy for developers to generate an initial project structure without worrying much about the project structure and dependencies.It allows you to create varied range of Spring Boot based applications from a very simple UI. On high level Spring  Initializer tools takes care of the following points for Spring based applications. Project Structure. Dependencies required to start the work. Maven or Gradle to build application. Initializer will add correct dependencies based on the version. Packaging(jar or war). lets look how to start a Spring Initializer interface,Go to  http://start.spring.io/  you can view this snapshot refer below. Initializer view with minimal option to build a spring boot project,lets us discuss the field for basic understanding. Project- This gives us the option to select the project as Maven or Gradle based. In this post, we choose Maven. This selection generates a pom.xml file for ...

Install And Setup of Spring Boot

Image
Please ensure to Install Java 8 and above versions Install And Setup for Spring Boot I would be exploring two different options for creating the Spring Boot projects Spring Boot CLI Spring Tools Suite(STS) in Eclipse. Spring Boot CLI(Command Line Interface)    Spring Boot CLI(Command Line Interface) is a Spring Boot software to run and test Spring Boot applications from command prompt.When we run Spring Boot applications using CLI, then it internally uses Spring Boot Starter and Spring Boot AutoConfigurate components to resolve all dependencies and execute the application. Spring Boot CLI Setup And Maven Apache Step 1:First we should download the Maven Apache and Spring Boot CLI for creating Spring Boot projects Step 2: Download the Maven Apache in maven official site link given   https://maven.apache.org/ website ,Here you can download the Maven Zip file for example Apache-maven-3.5.2-bin-zip. Step 3: Unzip it to the folder you want to install Apache Maven,Am just u...