Enviar pesquisa
Carregar
Spring Framework Introduction
•
Transferir como PPTX, PDF
•
1 gostou
•
869 visualizações
Alex Su
Seguir
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 27
Baixar agora
Recomendados
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
Recomendados
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
Mais conteúdo relacionado
Destaque
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
Destaque
(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
Semelhante a 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
Semelhante a 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
Último
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
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
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
V3cube
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Último
(20)
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Slack Application Development 101 Slides
Slack Application Development 101 Slides
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
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
Baixar agora