Soumettre la recherche
Mettre en ligne
Spring Framework Introduction
•
Télécharger en tant que PPTX, PDF
•
1 j'aime
•
869 vues
Alex Su
Suivre
Technologie
Signaler
Partager
Signaler
Partager
1 sur 27
Télécharger maintenant
Recommandé
Epoxy 介紹
Epoxy 介紹
Kros Huang
How to get full power from WebApi
How to get full power from WebApi
Raffaele Rialdi
Real World Asp.Net WebApi Applications
Real World Asp.Net WebApi Applications
Effie Arditi
Advance java session 17
Advance java session 17
Smita B Kumar
Node js introduction
Node js introduction
Alex Su
SGcafe Anime News For Otaku Nov 2012 Issue
SGcafe Anime News For Otaku Nov 2012 Issue
VR-Zone .com
One click deployment
One click deployment
Alex Su
Cascading introduction
Cascading introduction
Alex Su
Recommandé
Epoxy 介紹
Epoxy 介紹
Kros Huang
How to get full power from WebApi
How to get full power from WebApi
Raffaele Rialdi
Real World Asp.Net WebApi Applications
Real World Asp.Net WebApi Applications
Effie Arditi
Advance java session 17
Advance java session 17
Smita B Kumar
Node js introduction
Node js introduction
Alex Su
SGcafe Anime News For Otaku Nov 2012 Issue
SGcafe Anime News For Otaku Nov 2012 Issue
VR-Zone .com
One click deployment
One click deployment
Alex Su
Cascading introduction
Cascading introduction
Alex Su
Using puppet
Using puppet
Alex Su
Redis Introduction
Redis Introduction
Alex Su
Scrum Introduction
Scrum Introduction
Alex Su
Presentation v16 slideshow
Presentation v16 slideshow
tenmillion
JMS Introduction
JMS Introduction
Alex Su
Attitude
Attitude
swagat_ams
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
Mike Croft
Web Technologies in Java EE 7
Web Technologies in Java EE 7
Lukáš Fryč
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
PROIDEA
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
Jacek Bukowski
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Qingwen zhao
Architecting for Microservices Part 2
Architecting for Microservices Part 2
Elana Krasner
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
João Pedro Martins
Play Framework and Activator
Play Framework and Activator
Kevin Webber
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
J V
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
NLJUG
Spring Cloud and Netflix OSS overview v1
Spring Cloud and Netflix OSS overview v1
Dmitry Skaredov
Best Practices for Webcam Augmented Reality
Best Practices for Webcam Augmented Reality
Zugara
Continuous Integration - Live Static Analysis with Puma Scan
Continuous Integration - Live Static Analysis with Puma Scan
Puma Security, LLC
ThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptx
Grace Jansen
Design Patterns para Microsserviços com MicroProfile
Design Patterns para Microsserviços com MicroProfile
Víctor Leonel Orozco López
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
Amazon Web Services
Contenu connexe
En vedette
Using puppet
Using puppet
Alex Su
Redis Introduction
Redis Introduction
Alex Su
Scrum Introduction
Scrum Introduction
Alex Su
Presentation v16 slideshow
Presentation v16 slideshow
tenmillion
JMS Introduction
JMS Introduction
Alex Su
Attitude
Attitude
swagat_ams
En vedette
(6)
Using puppet
Using puppet
Redis Introduction
Redis Introduction
Scrum Introduction
Scrum Introduction
Presentation v16 slideshow
Presentation v16 slideshow
JMS Introduction
JMS Introduction
Attitude
Attitude
Similaire à Spring Framework Introduction
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
Mike Croft
Web Technologies in Java EE 7
Web Technologies in Java EE 7
Lukáš Fryč
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
PROIDEA
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
Jacek Bukowski
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Qingwen zhao
Architecting for Microservices Part 2
Architecting for Microservices Part 2
Elana Krasner
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
João Pedro Martins
Play Framework and Activator
Play Framework and Activator
Kevin Webber
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
J V
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
NLJUG
Spring Cloud and Netflix OSS overview v1
Spring Cloud and Netflix OSS overview v1
Dmitry Skaredov
Best Practices for Webcam Augmented Reality
Best Practices for Webcam Augmented Reality
Zugara
Continuous Integration - Live Static Analysis with Puma Scan
Continuous Integration - Live Static Analysis with Puma Scan
Puma Security, LLC
ThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptx
Grace Jansen
Design Patterns para Microsserviços com MicroProfile
Design Patterns para Microsserviços com MicroProfile
Víctor Leonel Orozco López
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
Amazon Web Services
Real world Scala hAkking NLJUG JFall 2011
Real world Scala hAkking NLJUG JFall 2011
Raymond Roestenburg
Windows 8 Metro apps and the outside world
Windows 8 Metro apps and the outside world
Prabhakaran Soundarapandian
Java Unit Test and Coverage Introduction
Java Unit Test and Coverage Introduction
Alex Su
Security for developers
Security for developers
Abdelrhman Shawky
Similaire à Spring Framework Introduction
(20)
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
MicroProfile: A Quest for a Lightweight and Modern Enterprise Java Platform
Web Technologies in Java EE 7
Web Technologies in Java EE 7
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Apache Eagle: 来自eBay的分布式实时Hadoop数据安全引擎
Architecting for Microservices Part 2
Architecting for Microservices Part 2
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
Azure Service Fabric and the Actor Model: when did we forget Object Orientation?
Play Framework and Activator
Play Framework and Activator
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
Deep Dive: Alfresco Core Repository (... embedded in a micro-services style a...
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
Modularity and Domain Driven Design; a killer Combination? - Tom de Wolf & St...
Spring Cloud and Netflix OSS overview v1
Spring Cloud and Netflix OSS overview v1
Best Practices for Webcam Augmented Reality
Best Practices for Webcam Augmented Reality
Continuous Integration - Live Static Analysis with Puma Scan
Continuous Integration - Live Static Analysis with Puma Scan
ThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptx
Design Patterns para Microsserviços com MicroProfile
Design Patterns para Microsserviços com MicroProfile
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
Real world Scala hAkking NLJUG JFall 2011
Real world Scala hAkking NLJUG JFall 2011
Windows 8 Metro apps and the outside world
Windows 8 Metro apps and the outside world
Java Unit Test and Coverage Introduction
Java Unit Test and Coverage Introduction
Security for developers
Security for developers
Dernier
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Dernier
(20)
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Spring Framework Introduction
1.
Spring Framework Introduction Alex
Su 2010/06/14 Copyright 2010 TCloud Computing Inc.
2.
Agenda •Concept –
IOC(Inverse of Control and Dependency Injection) – AOP(Aspect-Oriented Programming) •Core Technologies – Architecture – Xml v.s. Annotation – SpEL – Testing •Integration – CXF(web services and restful services) Trend Micro Confidential
3.
IOC •IOC Type
•Type 1 : interface injection •Type 2 : setter injection •Type 3 : constructor injection Trend Micro Confidential
4.
AOP Trend Micro Confidential
5.
AOP Trend Micro Confidential
6.
AOP • Aspect • Advice •
Interceptor • Introduction • Joinpoint • Pointcut • Target • Proxy • Weave Trend Micro Confidential
7.
AOP Trend Micro Confidential
8.
AOP @Aspect class BeforeExample {
@Before("execution(* com.xyz.myapp.dao.*.*(..))") public void doAccessCheck() { // ... } } @Aspect class AfterReturningExample { @AfterReturning("com.xyz.myapp.SystemArchitecture.dataAcc essOperation()") public void doAccessCheck() { // ... } } Trend Micro Confidential
9.
AOP @Aspect class AroundExample { @Around("com.xyz.myapp.SystemArchitecture.businessService ()")
public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable { // start stopwatch Object retVal = pjp.proceed(); // stop stopwatch return retVal; } } Trend Micro Confidential
10.
Pointcut designator • execution(modifiers-pattern?
ret-type-pattern declaring-type-pattern? name- pattern(param-pattern) throws-pattern?) • execution(public * *(..)) • execution(* com.xyz.service.AccountService.*(..)) • within(com.xyz.service.*) • within(com.xyz.service..*) • this(com.xyz.service.AccountService) • target(com.xyz.service.AccountService) Trend Micro Confidential
11.
Architecture Trend Micro
Confidential
12.
Architecture Trend Micro
Confidential
13.
Architecture • Bean Scope
• Singleton • Prototype • Request • Session • Custom Trend Micro Confidential
14.
Architecture Trend Micro
Confidential
15.
Architecture Trend Micro
Confidential
16.
Xml v.s. Annotation public
class SimpleMovieLister { private MovieFinder movieFinder; public void find() { movieFinder.find(); } public void setMovieFinder(MovieFinder movieFinder) { this.movieFinder = movieFinder; } } Trend Micro Confidential
17.
Xml v.s. Annotation <bean
id="movieFinder" class="com.sample.MovieFinder"/> <bean id="simpleMovieLister” class="com.sample.SimpleMovieLister"> <property name="movieFinder"> <ref local="movieFinder"/> </property> </bean> Trend Micro Confidential
18.
Xml v.s. Annotation @Service public
class SimpleMovieLister { @Resource private MovieFinder movieFinder; public void find() { movieFinder.find(); } } Trend Micro Confidential
19.
Xml v.s. Annotation •
stereotype annotations • @Component • @Service • @Controller • @Repository Controller Service Repository Trend Micro Confidential
20.
SpEL •
Literal expressions • Properties, Arrays, Lists, Maps, Indexers • Methods • Operators • Assignment • Types • Constructors • Variables • User defined functions • Ternary Operator • Elvis Operator • Safe Navigation operator • Collection Selection • Collection Projection • Expression templating Trend Micro Confidential
21.
Testing @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {
"classpath:appContext_core.xml", "classpath:appContext_index.xml”}) public abstract class AbstractTestCase { } Trend Micro Confidential
22.
Testing • Spring-specific annotations
– @TransactionConfiguration – @BeforeTransaction – @AfterTransaction – @IfProfileValue – @ExpectedException – @Timed – @Repeat Trend Micro Confidential
23.
CXF • JAX-WS Support
– SOAP 1.1, 1.2 • RESTful services – JSON & XML support • WS-* Support – WS-Addressing, WS-Policy, WS-ReliableMessaging and WS-Security • Spring Integration • Bus – Fast Infoset Trend Micro Confidential
24.
CXF • RESTful services
– JAX-RS – JAX-WS Provider and Dispatch – HTTP Binding(deprecated) Trend Micro Confidential
25.
CXF • Parameters
– @PathParam – @QueryParam – @HttpHeader – @MatrixParam – @FormParam – @CookieParam – PathSegment Trend Micro Confidential
26.
Reference • http://caterpillar.onlyfun.net/Gossip/ • http://www.springsource.org/ •
http://cxf.apache.org/ Trend Micro Confidential
27.
THANK YOU!
Trend Micro Confidential
Télécharger maintenant