Spring Boot Web Application, Study Guides, Projects, Research of Computer science

A complete introduction to Spring Boot Web Application

Typology: Study Guides, Projects, Research

2018/2019

Uploaded on 11/27/2019

grusso74
grusso74 🇮🇹

8 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5

Partial preview of the text

Download Spring Boot Web Application and more Study Guides, Projects, Research Computer science in PDF only on Docsity!

Spring Boot — Making Spring Fun Again I've been playing around with Spring Boot again and really like what The Spring Team has been doing. Spring Boot is making Spring fun again. | haven't had this much pleasure developing Spring Applications since | started learning Grails. One of the things | loved about the Grails framework was its common sense approach to building web applications. Sure, Spring was under the covers of Grails. But the Grails team wired Spring up with a lot of defaults. For example, if you were using Hibernate to write to a database of course you're going to want a Spring Transaction Manager. Grails came out of the box with a transaction manager configured for you. If you were writing a Spring MVC application, you'd need to add a transaction manager into your configuration. The Spring Framework gives you all these pre-built components, but it was left up to you to wire them up into your application. You as the developer are responsible for everything. All the components are there, but some ‘assembly’ is required. The cool part about Spring Boot is it makes a lot of common sense guesses for you. Like if you add Hibernate to your build, it guesses you're going to want a transaction manager. The transaction manager is just one example of a common no-brainer Spring component you'd normally need to wire up that Spring Boot will automatically do for you. Spring Boot actually has over 200 default choices which it makes for you. Spring Boot takes a lot of the mundane pain out of building Spring Applications. It really is making Spring Fun again. Spring Boot is still a newcomer in the family of Spring Projects. Even though Spring Boot is new, | think its the future of Spring application development. Building a Spring Boot Web Application Think about building a simple web application using Spring. You're probably going to want to: e Use Spring of course! ® Spring MVC for the web part. * Thymeleaf for the template engine, because you're just plain tired of using JSPs. ¢ Good ol’ Hibernate for your ORM. ¢ An H2 database as your development database. ® Spring Data to take the pain out of using Good Ol’ Hibernate. ® Spring Security to secure your web application. e Tomcat as your application server. In this Spring Boot tutorial I'm going to walk you through step by step in developing a web application using Spring Boot and the technolagies | listed above.