Mastering Spring MVC 4 : gain expertise in designing real-world web applications using the Spring MVC framework / Geoffroy Warin
Resource type: Ressourcentyp: Buch (Online)Buch (Online)Sprache: Englisch Reihen: Community experience distilledVerlag: Birmingham : Packt Publishing, 2015Verlag: Birmingham : Packt PublishingBeschreibung: 1 online resourceISBN:- 9781783982394
- 005.13/3
- QA76.73.J38
Inhalte:
PPN: PPN: 860308391Package identifier: Produktsigel: ZDB-26-MYL | ZDB-30-PQE | ZDB-38-EBR
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Setting Up a Spring Web Application in No Time; Getting started with Spring Tool Suite; Getting started with IntelliJ; Getting started with start.Spring.io; Getting started with the command line; Let's get started; The Gradle build; Let me see the code!; Spring Boot behind the curtains; The dispatcher and multipart configuration; The view resolver, static resources, and locale configuration; Error and encoding configuration
Embedded Servlet container (Tomcat) configurationThe HTTP port; The SSL configuration; Other configurations; Summary; Chapter 2: Mastering the MVC Architecture; The MVC architecture; MVC critics and best practices; Anemic Domain Model; Learning from the sources; Spring MVC 1-0-1; Using Thymeleaf; Our first page; Spring MVC architecture; DispatcherServlet; Passing data to the view; Spring Expression Language; Getting data with a request parameter; Enough Hello Worlds, let's fetch tweets!; Registering your application; Setting up Spring Social Twitter; Accessing Twitter
Java 8 streams and lambdasMaterial design with WebJars; Using layouts; Navigation; The check point; Summary; Chapter 3: Handling Forms and Complex URL Mapping; The profile page - a form; Validation; Customize validation messages; Custom annotation for validation; Internationalization; Changing the locale; Translating the application text; A list in a form; Client validation; The check point; Summary; Chapter 4: File Upload and Error Handling; Uploading a file; Writing an image to the response; Managing upload properties; Displaying the uploaded picture; Handling file upload errors
Translating the error messagesPlacing the profile in a session; Custom error pages; URL mapping with matrix variables; Putting it together; The check point; Summary; Chapter 5: Crafting a RESTful Application; What is REST?; Richardson's maturity model; Level 0 - HTTP; Level 1 - Resources; Level 2 - HTTP verbs; Level 3 - Hypermedia controls; API versioning; Useful HTTP codes; Client is the king; Debugging a RESTful API; A JSON formatting extension; A RESTful client in your browser; httpie; Customizing the JSON output; A user management API; Status codes and exception handling
Status code with ResponseEntityStatus codes with exceptions; Documentation with Swagger; Generating XML; The check point; Summary; Chapter 6: Securing Your Application; Basic authentication; Authorized users; Authorized URLs; Thymeleaf security tags; The login form; Twitter authentication; Setting up social authentication; Explanation; Distributed sessions; SSL; Generating a self-signed certificate; The easy way; The dual way; Behind a secured server; The check point; Summary; Chapter 7: Leaving Nothing to Luck - Unit Tests and Acceptance Tests; Why should I test my code?
How should I test my code?
Dieser Titel hat keine Exemplare