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
18
Work harder not smarter
meistermeier
0
87
Better Testing with Testcontainers
meistermeier
0
73
What the Graph?
meistermeier
1
1.2k
Beziehungsmanagement mit Spring Data Neo4j
meistermeier
1
67
Time to Graph Up with Spring Data Neo4j
meistermeier
1
1.4k
Thymeleaf - Eine Template-Engine für Entwickler und Designer
meistermeier
0
490
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
タイミーにおけるデータの利用シーンと データ基盤の挑戦
marufeuille
4
3.2k
M5Stackボードの選び方
tanakamasayuki
0
210
Modern Functional Fluent CFML REST by Luis Majano
ortus24
0
140
データフレームライブラリ徹底比較
daikikatsuragawa
2
100
dbt-ga4パッケージを実業務に導入してみた話
t_tokumaru_feedcorp
0
120
Интеграционное тестирование: как приручить хаос
lamodatech
0
560
ポケモンで考えるコミュニケーション / Communication Lessons from Pokémon
mackey0225
4
170
UnJSで簡単に始めるCLIツール開発 / cli-tool-development-with-unjs
aoseyuu
2
260
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
390
AWS認定資格を受験するにあたり、気づいたこと・実践していたことのまとめ
satoshi256kbyte
1
120
CDKを活用した 大規模コンテナ移行 プロジェクトの紹介
yoyoyopg
0
300
データサイエンスのフルサイクル開発を実現する機械学習パイプライン
xcnkx
2
500
Featured
See All Featured
Building Applications with DynamoDB
mza
90
6k
Music & Morning Musume
bryan
46
6.1k
A better future with KSS
kneath
237
17k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Practical Orchestrator
shlominoach
186
10k
We Have a Design System, Now What?
morganepeng
49
7.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2k
Documentation Writing (for coders)
carmenintech
65
4.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Testing 201, or: Great Expectations
jmmastey
38
7k
The Invisible Customer
myddelton
119
13k
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/