Suche senden
Hochladen
Spring Framework Introduction
•
Als PPTX, PDF herunterladen
•
1 gefällt mir
•
869 views
Alex Su
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 27
Jetzt herunterladen
Empfohlen
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
Empfohlen
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
Weitere ähnliche Inhalte
Andere mochten auch
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
Andere mochten auch
(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
Ähnlich wie 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
Ähnlich wie 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
Kürzlich hochgeladen
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
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
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
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
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
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
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
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
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
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Antenna Manufacturer Coco
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Kürzlich hochgeladen
(20)
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
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...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
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
Jetzt herunterladen