25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 19 ■ <strong>Spring</strong> Boot, Simplifying Everything<br />

Figure 19-3. <strong>Spring</strong> Boot with Groovy<br />

Now you can go to any browser and enter the http://localhost:8080/documents URL and you should get the<br />

same as shown in Figure 19-2.<br />

So how can you deploy the <strong>Spring</strong> Boot based on Groovy? It’s as simple as executing the following command:<br />

spring jar mydocuments.jar *.groovy<br />

This command will create an executable JAR that you can use with this command:<br />

java –jar mydocuments.jar<br />

Summary<br />

In this chapter you saw how to reuse the Java code and how <strong>Spring</strong> Boot can run this <strong>Spring</strong> application effortlessly.<br />

You saw how to deploy the application either creating an executable JAR or creating a WAR for deploying it to any Java<br />

web container. Also, you saw how it is even easier to create <strong>Spring</strong> applications with Groovy.<br />

In the next chapter, I’ll introduce to you to a new technology created by the <strong>Spring</strong> <strong>Framework</strong> team called <strong>Spring</strong> XD.<br />

276

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!