Developing in Java™ with Spring® 5 Framework
Your application requirements need to become clear, maintainable code. With Spring, structure your development approach and connect technical decisions to expected functionality. Strengthen your ability to design, test and evolve applications independently.
- Duration
- 3 days 21 hours
- Code
- DEV-JS5 Code
Presentation
Spring® stands out among the most widely used open-source Java™ frameworks for building enterprise application infrastructure. This programming solution offers a different way to work with Java code. Spring® provides key benefits for developers: easier design, flexible libraries, improved performance, productivity and security.
In this 3-day course, you will learn the fundamentals of Spring® 5 Framework and more. The initial modules introduce the features of Spring®, installation of the Eclipse IDE and basic configuration. Subsequent modules cover developing a small web application with Spring MVC, object-oriented programming, and setting up unit and integration tests. The final modules address modern framework features, authentication and social network API integration.
For Java™ developers and application designers working on secure, dynamic, cloud-accessible microservices for the web or data streams, this Spring® 5 course is designed for you.
Objectives
This Developing in Java™ with Spring® 5 Framework course will enable you to:
- Distinguish the features of Spring® 5 from those of Java EE and JavaBeans.
- Design a layered architecture.
- Integrate aspect-oriented programming (AOP).
- Configure a Spring® 5 container using annotations.
- Use Spring JDBC and Spring ORM for data access.
- Build a website with Spring Web MVC Framework.
- Secure Spring applications with Spring Security.
Program
Module 1: about Spring® 5
- Overview of framework components.
- Introduction to lightweight container principles.
- Overview of uses for Spring® 5.
- Introduction to Spring IoC and dependency injection.
Practical exercises:
- Set up the Eclipse IDE.
- Perform a basic Spring 5 configuration.
- Run tests with JUnit 5.
Module 2: configuring Spring® 5 packages
- Implementing and configuring Beans, BeanFactory and ApplicationContext.
- Injecting prototype beans into a singleton instance.
- Dependency injection methods.
- Configuring Spring-specific beans.
- The bean lifecycle.
- Abstract beans and inheritance.
Module 3: integrating aspect-oriented programming with Spring AOP
- Review of aspect-oriented programming (AOP).
- AOP terminology.
- Types of advice.
- Benefits and features of Spring AOP.
- Integrating Spring AOP with AspectJ.
Module 4: implementing tests
- Introduction to the Extreme Programming agile method.
- Unit and integration tests.
- The role of Spring 4 in testing tools.
- Benefits of Spring 4 during testing.
Module 5: integrating Java EE with Spring® 5
- Integrating session EJBs as a Spring module.
- Java EE integration with Java Message Service (JMS).
- Integrating Java web services.
- Java EE integration with Java Management Extensions (JMX).
Practical exercises:
- Implement an API business layer with session EJBs and MDBs.
- Create a media library web application: different bean configurations, code completion, writing and running unit tests, and using AOP for profiling.
Module 6: developing a web API with Spring Web MVC
- Review of Spring Web Model-View-Controller (MVC).
- The Spring MVC architecture model.
- Spring MVC controllers and views.
- How locales and themes work.
- Exception handling in Spring MVC.
- Integration with other view models.
Module 7: managing data in Spring® 5
- Integrating the data access object model with Java Database Connectivity and Spring® 5 abstract classes.
- Configuring Hibernate SessionFactory at application level.
- Data persistence with HibernateTemplate and HibernateCallback.
- Implementing DAO through Hibernate APIs.
- Configuring EntityManagerFactory and JpaTemplate.
- Programmatic and declarative transaction demarcation.
- Managing NoSQL data sources.
Practical exercises:
- Set up a DAO layer for the small application with JPA.
- Separate service-layer operations.
Module 8: managing authentication for Web 2.0
- Introduction to OAuth.
- Introduction to the SpringSocial social networking project.
- Introduction to SpringMobile and SpringAndroid.
- Deploying a Spring application in the cloud.
Practical exercises:
- Implement SpringSocial.
- Deploy your application with Cloud Foundry.
Audience
This course is intended for:
- Professionals responsible for designing and developing Java™ applications.
- Anyone who wants to discover and learn to use the Spring® framework.
Prerequisites
To attend this Developing in Java™ with Spring® 5 Framework course, you should:
- Have solid Java™ programming experience and be familiar with Java Enterprise Edition (JEE).
- Understand object-oriented programming (OOP) fundamentals.
Teaching and assessment methods
- Initial skills assessment
- Training materials provided to participants
- Continuous assessment throughout the course
- End-of-course feedback questionnaire
- Combination of theory and practical application
- Attendance records
- Post-course follow-up evaluation
- Quiz / multiple-choice questions
- Practical exercises
Course highlights
Dates and sessions
Choose the date and delivery format that suit you.
No upcoming sessions are currently available.
Session alerts
Course content offered in partnership with Softeam Institute (in French).
fr
en