ebook img

Learning Spring Boot PDF

326 Pages·2014·2.591 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Learning Spring Boot

Learning Spring Boot Table of Contents Learning Spring Boot Credits Foreword About the Author About the Reviewers www.PacktPub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for Packt account holders Preface What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. Quick Start with Groovy Getting started Installing Spring Boot’s CLI Testing with Spring Boot’s CLI Bundling and deploying a Spring Boot application Adding support for templates Modernizing our app with JavaScript Using Bower instead of WebJars What about an app that is all frontend with no backend? Adding production-ready support features Pinging our app for general health Gathering metrics Detailed management with CRaSH Summary 2. Quick Start with Java Creating an empty project with start.spring.io Spring Boot starters Running a Spring Boot application Adding Spring Social GitHub Digging into GitHub issues Creating a GitHub access token Delving into Spring Boot’s property support Adding server-side mobile support with Spring Mobile Creating a mobile frontend with jQuery Mobile Bundling up the application as a runnable JAR Deploying to Cloud Foundry Adding production-ready support Summary 3. Debugging and Managing Your App Creating a JMS-based publisher/subscriber app Using Spring Boot’s auto-configuration report Auto-configuring ActiveMQ Making a change and debugging the results Overriding Boot with alternate beans or properties Writing a custom health check to ping ActiveMQ Adding customized app data to /info Creating custom metrics to track the message traffic Tweaking management ports, address, and paths Restricting access only to JMX Connecting to the app via JConsole and jmxterm Creating custom CRaSH commands Summary 4. Data Access with Spring Boot Creating an app using H2’s in-memory database Defining entities and repositories Loading data using a SQL script Loading data programmatically Adding a production profile for a MySQL database Adding Spring Data REST and using it to manage teammates Reconfiguring our app to use Spring Data MongoDB Running our MongoDB-based app Summary 5. Securing Your App with Spring Boot Getting started Defining our domain Loading the test data Creating a server-side controller Crafting our HTML templates Running our unsecured application Securing our app Navigating with basic authentication Enhancing the security model of our app Configuring user data to persist Configuring embedded Tomcat to use SSL Spring Security’s default web-level protections Navigating our fully secured app Summary Index Learning Spring Boot Learning Spring Boot Copyright © 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: November 2014 Production reference: 1211114 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78439-302-1 www.packtpub.com

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.