springpeople introduction to spring framework
TRANSCRIPT
-
7/28/2019 SpringPeople Introduction to Spring Framework
1/18
Copyright 2005-2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Introduction to Core Spring
A 4-day bootcamp that teaches you how to use the
Spring Framework to create well-designed, testable
business applications
-
7/28/2019 SpringPeople Introduction to Spring Framework
2/18
2
How You will Benefit
Learn to use Spring for web and other applications
Gain hands-on experience
50/50 presentation and labs
-
7/28/2019 SpringPeople Introduction to Spring Framework
3/18
3
Goals of Spring Framework
Provide comprehensive infrastructural supportfor developing enterprise Java applications
Spring deals with the plumbing
So you can focus on solving the domain problem
-
7/28/2019 SpringPeople Introduction to Spring Framework
4/18
4
Springs Support (1)
Core support
Application Configuration
Enterprise Integration
Testing
Data Access
-
7/28/2019 SpringPeople Introduction to Spring Framework
5/18
5
Application Configuration
A typical application system consists of several partsworking together to carry out a use case
Component A Component B
Component C
-
7/28/2019 SpringPeople Introduction to Spring Framework
6/18
6
Example: A Money Transfer System
TransferService
transfer(
300.00,
1, 2)
confirmation
debit(300.00)
AccountRepository
loadAccount(1);
credit(300.00)
Account 2
loadAccount(2);
updateAccount(a1);
updateAccount(a2);
new
Account 1new
a1
a2
-
7/28/2019 SpringPeople Introduction to Spring Framework
7/187
Springs Configuration Support
Spring provides support for assembling such an applicationsystem from its parts
Parts do not worry about finding each other
Any part can easily be swapped out
-
7/28/2019 SpringPeople Introduction to Spring Framework
8/188
Parts are Just Plain Old Java Objects
public class TransferServiceImpl implements TransferService {
private AccountRepository accountRepository;
public void setAccountRepository(AccountRepository ar) {
accountRepository = ar;}
}
public class JdbcAccountRepository implements AccountRepository {
}Part 1
Depends on service interface;
conceals complexity of implementation;
allows for swapping out implementation
Part 2
Implements a service interface
-
7/28/2019 SpringPeople Introduction to Spring Framework
9/189
For Jdbc
Swapping Out Part Implementations
TransferServiceImpl
JdbcAccountRepository
Spring
(1) new JdbcAccountRepository();
(2) new TransferServiceImpl();
(3) service.setAccountRepository(repository);
JpaAccountRepository
(1) new JpaAccountRepository();
(2) new TransferServiceImpl();
(3) service.setAccountRepository(repository);
StubAccountRepository
(1) new StubAccountRepository();
(2) new TransferServiceImpl();
(3) service.setAccountRepository(repository);
For JpaFor Unit Testing
-
7/28/2019 SpringPeople Introduction to Spring Framework
10/1810
Spring Enterprise Integration
Spring helps you integrate powerful enterprise services intoyour application
While keeping your application code simple and testable
Plugs into all Java EE application serversWhile capable of standalone usage
-
7/28/2019 SpringPeople Introduction to Spring Framework
11/1811
Testing
Automated testing is essential
Spring enables unit testability
Decouples objects from their environment
Making it easier to test each piece of your application in isolationSpring provides system testing support
Helps you test all the pieces together
-
7/28/2019 SpringPeople Introduction to Spring Framework
12/1812
Course Agenda: Day 1
Introduction to Spring
Using Spring to configure an application
Simplifying XML-based configuration
Annotation-based dependency injection Java-based dependency injection
-
7/28/2019 SpringPeople Introduction to Spring Framework
13/1813
Course Agenda: Day 2
Understanding the bean life-cycle
Testing a Spring-based application using multiple profiles
Introducing data access with Spring
Adding behavior to an application using aspects Simplifying JDBC-based data access
-
7/28/2019 SpringPeople Introduction to Spring Framework
14/1814
Course Agenda: Day 3
Driving database transactions in a Spring environment
Introducing object-to-relational mapping (ORM)
Working with JPA in a Spring environment
Effective web application architecture Getting started with Spring MVC
-
7/28/2019 SpringPeople Introduction to Spring Framework
15/1815
Course Agenda: Day 4
Securing web applications with Spring Security
Understanding Spring's remoting framework
Simplifying message applications with Spring JMS
Adding manageability to an application with Spring JMX
-
7/28/2019 SpringPeople Introduction to Spring Framework
16/1816
Become a SpringSource Certified
Spring Professional In 4 Days
Attend the 4-Days Core Spring Workshop
View Complete Details
http://www.springpeople.com/courses/regular/springsource-certified-spring-framework-core-spring-workshop-training-course.phphttp://www.springpeople.com/courses/regular/springsource-certified-spring-framework-core-spring-workshop-training-course.php -
7/28/2019 SpringPeople Introduction to Spring Framework
17/1817
Who will benefit?
Developers and Architects, who wish to build a Spring-powered JEEapplication that demonstrates the Spring Framework and other Spring
technologies
View Complete Details
http://www.springpeople.com/courses/regular/springsource-certified-spring-framework-core-spring-workshop-training-course.phphttp://www.springpeople.com/courses/regular/springsource-certified-spring-framework-core-spring-workshop-training-course.php -
7/28/2019 SpringPeople Introduction to Spring Framework
18/18
18
Q & A
+91 80 65679700www.springpeople.com
A SpringSource Certified Partner and
VMware Authorized Training Center
mailto:[email protected]://www.springpeople.com/http://www.springpeople.com/mailto:[email protected]