Skip to main content

Posts

Simple example of spring boot with maven

In this post, we create a simple spring boot application with Maven. Technology used: Project: Maven project SpringBoot Version: 2.6.5 Java: 8 Editor or IDE: Eclipse How to create Maven Project in Eclipse? First, create a project with a spring boot initializer and unzip in a specific path of file explorer then follow the below steps in eclipse: 1) Go to File Menu. 2) Click on import . 3) Click on Existing Maven Projects . 4) Browse the path of your project which is created by the spring-boot initializer. 5) Click on Finish . How to run the application in Eclipse? First, build and then run an application using the following steps:     Build application: 1) Right Click on your project in Project Explorer. 2) Click on Run As . 3) Click on Run Configurations... 4) Click on Maven Build (In the left panel of opened dialog) 5) Provide a Name of the configuration. 6) Click on Workspace and select your project. 7) Write " clean -X install " in Goals. 8) Click on Apply . 9) Click...
Recent posts

Learn SpringBoot

 What is SpringBoot?                SpringBoot is one of the Java Spring Framework. Using  SpringBoot developers can develop web applications, Rest API for use on any frontend side, and do many things.  Why use SpringBoot? Provide Autoconfiguration (No need for  XML  configuration. ) Reduce development time.  Creates stand-alone spring applications. Fast and easy development. Reduce the amount of source code. Simple setup and management. Directly embedded with servers like Tomcat, Jetty, Undertow, etc... Limitations of SpringBoot: Complexity Limited control of your application How to create a SpringBoot project? Spring Boot Initializer Go to  https://start.spring.io/ Select the project which you want to create ( Maven/Gradle) Select language (Java/Kotlin/Groovy) Select the Spring Boot version Fill in Project metadata Add at least basic starter dependencies of spring boot Meaning of spring boot ve...