Core Spring

CloudLabs

Projects

Assignment

24x7 Support

Lifetime Access

.

Course Overview

The Spring Framework is an open source application framework and inversion of control container for the Java platform. The framework’s core features can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform. Although the framework does not impose any specific programming model, it has become popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean (EJB) model.The Spring Framework has its own AOP framework which modularizes cross-cutting concerns in aspects. The motivation for creating a separate AOP framework comes from the belief that it would be possible to provide basic AOP features without too much complexity in either design, implementation, or configuration.

At the end of the training, participants will be able to:

Pre-requisite

Experience with developing applications using Java.

Duarion

5 days

Course Outline

  1. XML configuration and the Spring application context
  2. Best practices: constructor versus setter injection
  3. Working with multiple configuration files
  4. Bean scope and factory beans
  1. Most popular namespaces
  2. Best practices when working with namespaces
  3. Externalizing constant values into properties files
  4. Working with a high number of configuration files
  5. Bean definition inheritance
  1. Autowiring and component scanning
  2. Component scanning: how to do it right
  3. XML versus annotations: when to use what
  4. Life cycle annotations: PostConstruct and @PreDestroy
  5. Stereotypes and meta-annotations
  1. Configuration and @Bean annotations
  2. Where is the magic? Inheritance-based proxies
  3. Equivalent to XML namespaces: Enable annotations
  4. When to use Java configuration
  1. The init phase: available interceptors
  2. The init phase: what is the difference between XML, annotations, and Java configuration?
  3. What happens during bean post processing
  4. Use and destruction phases
  1. Spring and test-driven development
  2. ContextConfiguration and RunWith annotations
  3. Application context caching and the DirtiesContext annotation
  4. Environment abstraction and bean definition profiles
  1. What problems does AOP solve?
  2. Differences between Spring AOP and AspectJ
  3. Defining pointcut expressions
  4. Implementing an advice: Around, @Before, @After, and so on
  1. How Spring integrates with existing data access technologies
  2. DataAccessException hierarchy
  3. Implementing caching using Cacheable
  4. jdbc namespace and the Spring JdbcTemplate
  1. @Transactional annotation
  2. Transactions configuration: XML versus annotations
  3. Isolation levels, transaction propagation, and rollback rules
  4. Transactions and integration testing
  5. Should you use read-only transactions?
  1. Quick introduction to ORM with JPA
  2. Benefits of using Spring with JPA
  3. JPA configuration in Spring
  4. PersistenceException versus the Spring DataAccessException
  1. Configuring Spring in a Web application (using Spring MVC, Struts, JSF, and so on)
  2. namespace
  3. Introduction to Spring MVC
  4. Using Controller and @RequestMapping annotations
  1. What problems does Spring Security solve?
  2. Configuring authentication and intercepting URLs
  3. Spring Security tag library for JSPs
  4. Security at the method level
  5. Customizing the Spring Security filter chain
  1. Remoting: Using Spring remoting and the Spring HttpInvoker for remote access
  2. JMS: Sending and receiving messages using the JmsTemplate
  3. JMX: Configuring Spring to export automatically MBeans and exporting a Spring bean as an MBean

Reviews