The document outlines the chapter topics for an IBM Watson Academy course on Spring. The 10 chapters cover getting started with Spring, bean configuration, autowiring, annotation-based wiring, the Spring Expression Language, working with databases using Spring and the DAO pattern, building web applications with Spring MVC, working with web forms, aspect-oriented programming with Spring AOP, and Spring Security for user authentication and authorization. Each chapter includes objectives, concepts explained, examples, exercises and a quiz.
The document outlines the chapter topics for an IBM Watson Academy course on Spring. The 10 chapters cover getting started with Spring, bean configuration, autowiring, annotation-based wiring, the Spring Expression Language, working with databases using Spring and the DAO pattern, building web applications with Spring MVC, working with web forms, aspect-oriented programming with Spring AOP, and Spring Security for user authentication and authorization. Each chapter includes objectives, concepts explained, examples, exercises and a quiz.
Objetivos What is Spring? About Spring Setting Up Your System Introducing Maven Using Maven on the Command Line Spring "Hello World" Class Path Contexts Practica Quiz
Capítulo 2 - Basic Bean Configuration
Objetivos Constructor Arguments Setting Bean Properties Dependency Injection Bean Scope Init and Destroy Methods Factory Beans and Methods The P Namespace Setting List Properties Lists of Beans Inner Beans Property Maps Arbitrary Maps as Bean Properties Practica Quiz Capítulo 3 - Autowiring Objetivos Autowiring by Type Autowiring by Name Autowiring by Constructor Default Autowiring Removing Autowire Ambiguities Practica Quiz
Capítulo 4 – Wiring with Annotations
Objetivos Adding Support for Annotation-Based Wiring The "Autowired" Annotation Optional Beans Using Qualifiers The Resource Annotation (JSR-250) Annotation-Based Init and Destroy Methods The Inject annotation (JSR-330) Automatic Bean Discovery Setting Property Values via Annotations Practica Quiz
Capítulo 5 – Spring Expression Language (SPEL)
Objetivos Introducing SPEL Using SPEL with Annotations Some useful SPEL Operators Practica Quiz
Capítulo 6 – Working with Databases
Objetivos Creating a Database with MySQL Using Property Files Implementing the DAO Pattern Downloading a Connector Jar Configuring Connection Pooling with Apache DBCP JDBC Templates Querying the Database Database Exceptions Named Parameters Update Statements Getting Placeholder Values from Beans Adding an Update Method to the DAO Batch Updates: Prepared Statements Transactions Practica Quiz
Capítulo 7 – Web Application Basics with Spring MVC
Objetivos A Basic Non-Spring Web App Bringing in Maven The Dispatcher Servlet Adding a Controller View Resolvers Adding Data to the Session Using Spring Data Models Using JSTL (JSP Standard Tag Library) Configuring a JNDI Data Source Bringing in the DAO Code Loading Bean Containers with ContextLoaderListener Creating a Datasource Bean Adding a Service Layer Adding a New Controller Getting URL Parameters Practica Quiz
Capítulo 8 – Working with Web Forms
Objetivos Creating a Form Getting Form Values Adding CSS Styles Serving Static Resources Adding Hibernate Form Validation Support More Form Validation Tags Making Forms Remember Values Displaying Form Validation Errors Creating a Custom Validation Annotation Hooking Up the Controller and Database Code Exception Handling in Spring MVC Practica Quiz
Capítulo 9 – Aspect-Oriented Programming (AOP)
Objetivos A Base Project for Working with Aspects A Simple Aspect Example Annotation-Based Aspects Wildcards in Pointcut Expressions Advice Types: After, Around and Others Proxies, Interfaces and Aspects The “Within” Pointcut Designator “This”, “Target” and Matching Subpackages Annotation-Specific PCDs The “Bean” PCD The “Args” PCD Getting Target Method Arguments Getting Arguments Using “Args” Combining Pointcuts Introductions: Adding Functionality Using Aspects Practica Quiz
Capítulo 10 – Spring Security and Managing Users
Objetivos Servlets Filters: A Review Adding a Spring Security Filter Adding a Spring Login Form Serving Static Resources: Access Rules Customising the Login Form Displaying Login Errors Authorising Users from a Database Adding a “Create Account” Form Making the “Create Account” Form Work Adding Validation to the User Form Dealing with Duplicate Usernames Storing Validation Messages in a Property File Using JQuery to verify the password Using Property File Values in JSPs Adding a Logout Link Working With Roles Outputting Text Based on Authentication Status Row Mapping with BeanPropertyRowMapper Using Custom Authentication Queries: Case Sensitive Usernames Method-Level Access Control Catching Secure Annotation Violations Adding “Remember Me” Functionality Encrypting Passwords Practica Quiz