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
190
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
96
Work harder not smarter
meistermeier
0
100
Better Testing with Testcontainers
meistermeier
0
86
What the Graph?
meistermeier
1
1.3k
Beziehungsmanagement mit Spring Data Neo4j
meistermeier
1
78
Time to Graph Up with Spring Data Neo4j
meistermeier
1
1.5k
Thymeleaf - Eine Template-Engine für Entwickler und Designer
meistermeier
0
580
Wie soll man das denn nutzen? - Spring REST Docs
meistermeier
0
170
MVC 1.0
meistermeier
0
130
Other Decks in Programming
See All in Programming
FastMCPでMCPサーバー/クライアントを構築してみる
ttnyt8701
2
100
Interface vs Types ~型推論が過多推論~
hirokiomote
1
230
イベントストーミングから始めるドメイン駆動設計
jgeem
3
440
Passkeys for Java Developers
ynojima
1
240
OpenNext + Hono on Cloudflare でイマドキWeb開発スタックを実現する
rokuosan
0
110
❄️ tmux-nixの実装を通して学ぶNixOSモジュール
momeemt
1
120
漸進。
ssssota
0
1.2k
DevTalks 25 - Create your own AI-infused Java apps with ease
kdubois
2
120
從零到一:搭建你的第一個 Observability 平台
blueswen
0
220
コンポーネントライブラリで実現する、アクセシビリティの正しい実装パターン
schktjm
1
670
クラシルリワードにおける iOSアプリ開発の取り組み
funzin
1
810
バリデーションライブラリ徹底比較
nayuta999999
1
440
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
76
9.4k
Six Lessons from altMBA
skipperchong
28
3.8k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Being A Developer After 40
akosma
91
590k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
850
Build The Right Thing And Hit Your Dates
maggiecrowley
35
2.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
34k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
A Modern Web Designer's Workflow
chriscoyier
693
190k
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/