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č
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
Jacek Bukowski
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
PROIDEA
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č
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
Jacek Bukowski
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
PROIDEA
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
Flying to clouds - can it be easy? Cloud Native Applications
Flying to clouds - can it be easy? Cloud Native Applications
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
JDD 2016 - Jacek Bukowski - "Flying To Clouds" - Can It Be Easy?
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
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
LoriGlavin3
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
Rick Flair
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
ScyllaDB
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
HarshalMandlekar2
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
LoriGlavin3
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Zilliz
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
Último
(20)
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
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