Vai al contenuto principale della pagina

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



(Visualizza in formato marc)    (Visualizza in BIBFRAME)

Autore: Bretet Alex Visualizza persona
Titolo: Spring MVC cookbook : over 40 recipes for creating cloud-ready Java web applications with Spring MVC / / Alex Bretet Visualizza cluster
Pubblicazione: Birmingham : , : Packt Publishing, , 2016
Edizione: 1st edition
Descrizione fisica: 1 online resource (466 p.)
Soggetto topico: Application software - Development
Java (Computer program language)
Note generali: Includes index.
Nota di contenuto: 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
Sommario/riassunto: Over 40 recipes for creating cloud-ready Java web applications with Spring MVC About This Book Configure Spring MVC to build logic-less controllers that transparently support the most advanced web techniques Build an amazing social and financial application that applies microservices patterns on deployment, self-testability, interoperability, cloud architectures, and scalability Fast-paced, practical guide to learn how to set up Spring MVC to produce REST resources and templates as required by the latest front-end best practices Who This Book Is For If you are an experienced Java developer, with prior experience in web technologies, and want to step up in your career and stay up-to-date or learn more about Spring Web scalability, this book is for you. What You Will Learn Structure your project with Maven and create self-tested, domain-specific deployable web archives Generate templates for a responsive and powerful frontend with AngularJS and Bootstrap Build a high performance stateless RESTful and hypermedia application to support your multiple customer experiences Authenticate over REST with a BASIC authentication scheme and OAuth2; handle roles and permissions Document and publish your REST API using Swagger and Swagger UI Scale your Spring web application Communicate through WebSocket and STOMP messages Provide support to your application and efficiently maintain its business features with a relevant test stack In Detail Spring MVC is a lightweight application framework that comes with a great configuration by default. Being part of the Spring Framework, it naturally extended and supported it with an amazing set of recognizable annotations. External libraries can be plugged in and plugged out. It also possesses a request flow. Complete support of REST web services makes the Spring architecture an extremely consistent choice to support your front-end needs and Internet transformations. From the design of your Maven modules, you will achieve an Enterprise-standard for a stateless REST application based on Spring and Spring MVC with this book. This guide is unique in its style as it features a massive overview of practical development techniques brought together from the Spring ecosystem, the new JEE standards, the JavaScript revolution and Internet of Things. You will begin with the very first steps of Spring MVC's product design. Focused on deployment, viability, and maintainability, you will learn the use of Eclipse, Maven, and Git. You wi...
Altri titoli varianti: Spring MVC cookbook : over forty recipes for creating cloud-ready Java web applications with Spring MVC
Titolo autorizzato: Spring MVC cookbook  Visualizza cluster
ISBN: 1-78439-410-6
Formato: Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione: Inglese
Record Nr.: 9910825065903321
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui
Serie: Quick answers to common problems.