更新时间:2021-07-16 13:03:35
封面
版权信息
Credits
About the Author
About the Reviewer
www.PacktPub.com
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
Configuring a controller with simple URL mapping
Configuring a fallback controller using ViewResolver
Setting up and customizing a responsive single page webdesign with Bootstrap
Displaying 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
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
Binding requests and marshalling responses
Configuring content-negotiation (JSON XML and so on)
Adding pagination filters and sorting capabilities
Handling exceptions globally
Documenting and exposing an API with Swagger
Chapter 5. Authenticating with Spring MVC
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
Turning DTOs into Spring HATEOAS resources
Building links for a hypermedia-driven API
Choosing a strategy to expose JPA Entities
Retrieving data from a third-party API with OAuth
Chapter 7. Developing CRUD Operations and Validations
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
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 Redis
Chapter 9. Testing and Troubleshooting
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