Java Magazine, Jan/Feb 2016
ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2016 15 web apps Spring Boot is an opinionated way to quickly build web applications intended for production It pulls together and integrates lots of technologies including Spring and Java EE And it makes them accessible through a simple UI that enables you to mix and match components and quickly assemble the pieces to which you then add your applications specific knowledge This approach has gained popularity because it greatly reduces the amount of boilerplate code and housekeeping tasks In this article I show the steps involved in setting up a simple application that includes a modestly complex UI and a persistence layer In addition it contains tests in the way that modern software development practices dictate Getting Started There are many ways to get started with Spring Boot My favorite is Spring Initializr which is a web service you can use directly or from wizards inside your favorite IDEs NetBeans IntelliJ IDEA 14 Ultimate or the Spring Tool Suite which is an Eclipse distribution Whatever your approach in Spring Initializr youll be shown a menu of checkboxes Choose the type of workloads and technologies youd like to work with First Steps with Spring Boot The new Spring framework brings long awaited ease of development to web apps JOSH LONG You can select what type of packaging youd like JAR file or WAR file And you can choose a language Java or Groovy You can also specify which version of the JVM youd like to use 16 through 18 Whenever possible choose 18 because the other two versions have already reached official end of life This article looks briefly at lots of diferent technologies The goal is to highlight just how easy it is to pull them together into a useful application For our example choose these technologies from the wizards Web JPA the Java Persistence API REST repositories Vaadin the UI library Figure 1 Selecting project options
You must have JavaScript enabled to view digital editions.