Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Spring MVC
Search
Gerrit Meier
September 11, 2014
Programming
1
160
Spring MVC
Spring MVC as a part of the Spring ecosystem.
Gerrit Meier
September 11, 2014
Tweet
Share
More Decks by Gerrit Meier
See All by Gerrit Meier
Neo4j for Java developers
meistermeier
1
45
Work harder not smarter
meistermeier
0
88
Better Testing with Testcontainers
meistermeier
0
75
What the Graph?
meistermeier
1
1.2k
Beziehungsmanagement mit Spring Data Neo4j
meistermeier
1
69
Time to Graph Up with Spring Data Neo4j
meistermeier
1
1.4k
Thymeleaf - Eine Template-Engine für Entwickler und Designer
meistermeier
0
500
Wie soll man das denn nutzen? - Spring REST Docs
meistermeier
0
160
MVC 1.0
meistermeier
0
120
Other Decks in Programming
See All in Programming
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
160
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.7k
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
Remix on Hono on Cloudflare Workers
yusukebe
1
280
Arm移行タイムアタック
qnighy
0
320
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Jakarta EE meets AI
ivargrimstad
0
530
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
97
11k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Designing for Performance
lara
604
68k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Happy Clients
brianwarren
98
6.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Typedesign – Prime Four
hannesfritz
40
2.4k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Statistics for Hackers
jakevdp
796
220k
Transcript
Spring MVC
Gerrit Meier T-Systems on site services GmbH @meistermeier +GerritMeier
Spring
Context Data Social Integration … WebMVC
Context Data Social Integration … WebMVC
Spring Context
Context Tourist sleep fun transport take my money
Context Tourist sleep fun transport take my money Hotel ThemePark
ShoppingMall Shuttle
Context Tourist sleep fun transport take my money Camping WalkInThePark
GarageSale Bike
Context Demo
Spring Data
Data http://
Data Demo
Spring MVC
DispatcherServlet Controller View(Template) WebMVC request response delegate render response rendered
response attach data
DispatcherServlet Controller View(Template) WebMVC request response delegate attach data render
response rendered response
DispatcherServlet Controller View(Template) WebMVC request response delegate render response rendered
response attach data
DispatcherServlet Controller View(Template) WebMVC request response delegate render response rendered
response attach data model
WebMVC @Controller public class UserController { ! @RequestMapping("/users") public String
listUsers() { […] return "viewName"; } } http://server/myApp/users
WebMVC @Controller @RequestMapping("/users") public class UserController { ! @RequestMapping public
String listUsers() { […] return "viewName"; } } http://server/myApp/users
WebMVC @Controller public class UserController { ! @RequestMapping("/users") public String
listUsers( @RequestParam("filter") String filter) { […] return "viewName"; } } http://server/myApp/users?filter=hans
WebMVC @RequestMapping( value = "/users/{id}") public String showUser( @PathVariable("id") Long
id){ […] return "viewName"; } http://server/myApp/users/1
WebMVC @RequestMapping( value = "/users/{id}", method = RequestMethod.GET) public String
showUser( @PathVariable("id") Long id){ […] return "viewName"; } http://server/myApp/users/1
WebMVC @RequestMapping(method = RequestMethod.POST) public String save(…) { […] return
"viewName"; } POST http://server/myApp/users
WebMVC @RequestMapping(method = RequestMethod.POST) public String save( @Valid User user,
BindingResult bindingResult) { […] return "viewName"; } POST http://server/myApp/users
WebMVC Accept: text/html ! ! ! ! ! Accept: application/json
/users { users: [ {name: “Hans“} ] } User List ! - Hans http://…
https://www.flickr.com/photos/roshanyadama/11915951346 https://creativecommons.org/licenses/by/2.0/
WebMVC https://www.flickr.com/photos/mistermoss/3134331944 https://creativecommons.org/licenses/by/2.0/
WebMVC
WebMVC https://www.flickr.com/photos/bilal-kamoon/6835060992 https://creativecommons.org/licenses/by/2.0/