Duration: 5 days
This course enables the experienced Java developer to use the Spring MVC framework to create RESTful web services. We begin by developing fluency with the Spring container and configuration practices, and then learn the annotation-driven MVC system for REST controllers. We consider persistence techniques and unit testing to round out the week.
• Understand the scope, purpose, and architecture of Spring.
• Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles.
• Use dependency injection to further control object relationships from outside the Java code base.
• Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring.
• Configure systems of Spring beans using either Java or XML.
• Build web applications and RESTful services as a Spring DispatcherServlet and associated application context.
• Use Spring MVC annotations to map request URLs, methods, content types, and parameters to Java methods, and to bind request data to method parameters.
• Validate input via HTTP requests, and use exception handlers to produce appropriate HTTP error responses.
• Build REST clients using Spring's "REST template."
• Connect REST controllers to persistent stores using Spring for JDBC or JPA.
• Control transactions either programmatically with TransactionTemplate or declaratively with @Transaction annotations.
• Use the Spring testing framework for tests of core components, REST controllers, and persistence components.
Method of Delivery
• Onsite/Live class instructions or Online web conference
• Open discussion
• Case studies