Understanding Sprint boot Framework in nutshell
Spring Boot enables building production-ready applications quickly and provides
non-functional features:

Thats it!!
- Embedded servers which are easy to deploy with the containers
- It helps in monitoring the multiples components
- It helps in configuring the components externally
Disadvantages:
Automating the Components: It becomes difficult to automate everything because there are a number of smaller components instead of a monolith, i.e. Builds, Deployment, Monitoring, etc.
Perceptibility: There are number of small components to deploy and maintain which sometimes becomes difficult to monitor and identify problems. It requires great perceptibility around all the components.
Configuration Management: There is a great need to maintain the configurations for the components across the various environments.
Debugging: It becomes difficult to probe each and every service for an error. Centralized Logging and Dashboards are essential to make it easy to debug problems.
Consistency: You cannot have a wide range of tools solving the same problem. While it is important to foster innovation, it is also important to have some decentralized governance around the languages, platforms, technology and tools used for implementing/deploying/monitoring microservices.
Steps to configure the Sprint boot in your system:
- Install STS 3.x.
Once the tool is installed, click on File -> New -> Other. A dialog box opens up. In that, select Spring Boot Starter Project under the Spring Boot option and click Next.
Here, make sure you select Maven as Type and click Next. Refer to the snapshot below
2. In the next dialog box that shows up, select the dependencies that you want to add to your Spring Boot Eclipse Project and click Finish. Refer the snapshot below
3. Once created you can visualize below Screens
4. Running the application
5. Even though this application acts ready as a stand-alone application, we will still add a configuration file to it. This will help us handle the HTTP requests. Refer to the snapshot below.
Now, run the application as a Spring Boot App. You observe that the application has started and produces the following output on the console.
This application runs on 8080. So, if we pass /hello request to the following port number, then it produces the message returned from the requested method in the configuration file. Refer to the snapshot below
Thats it!!
Comments
Post a Comment