Cargando…

Spring MVC cookbook : over 40 recipes for creating cloud-ready Java web applications with Spring MVC /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Bretet, Alex (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2016.
Colección:Quick answers to common problems.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Setup Routine for an Enterprise Spring Application; Introduction; Installing Eclipse for JEE Developers and Java SE 8; Configuring Eclipse for Java 8, Maven 3, and Tomcat 8; Defining the project structure with Maven; Installing Spring, Spring MVC, and a web structure; Chapter 2: Designing a Microservice Architecture with Spring MVC; Introduction; Configuring a controller with simple URL mapping; Configuring a fallback controller using ViewResolver
  • Setting up and customizing a responsive single page webdesign with BootstrapDisplaying a model in the View, using the JSTL; Defining a common WebContentInterceptor; Designing a client-side MVC pattern with AngularJS; Chapter 3: Working with Java Persistence and Entities; Introduction; Configuring the Java Persistence API in Spring; Defining useful EJB3 entities and relationships; Making use of the JPA and Spring Data JPA; Chapter 4: Building a REST API for a Stateless Architecture; Introduction; Binding requests and marshalling responses; Configuring content-negotiation (JSON, XML, and so on)
  • Adding pagination, filters, and sorting capabilitiesHandling exceptions globally; Documenting and exposing an API with Swagger; Chapter 5: Authenticating with Spring MVC; Introduction; Configuring Apache HTTP to proxy your Tomcat(s); Adapting users and roles to Spring Security; Authenticating over a BASIC scheme; Authenticating with a third-party OAuth2 scheme; Storing credentials in a REST environment; Authorizing on services and controllers; Chapter 6: Implementing HATEOAS; Introduction; Turning DTOs into Spring HATEOAS resources; Building links for a hypermedia-driven API
  • Choosing a strategy to expose JPA EntitiesRetrieving data from a third-party API with OAuth; Chapter 7: Developing CRUD Operations and Validations; Introduction; Extending REST handlers to all HTTP methods; Validating resources using bean validation support; Internationalizing messages and contents for REST; Validating client-side forms with HTML5 AngularJS; Chapter 8: Communicating Through WebSockets and STOMP; Introduction; Streaming social events with STOMP over SockJS ; Using RabbitMQ as a multiprotocol message broker; Stacking and consuming tasks with RabbitMQ and AMQP
  • Securing messages with Spring Session and RedisChapter 9: Testing and Troubleshooting; Introduction; Automating Database Migrations with FlyWay; Unit testing with Mockito and Maven Surefire; Integration testing with Cargo, Rest-assured, and Maven failsafe; Injecting Spring Beans into integration tests; Modern application Logging with Log4j2; Index