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
210
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
150
Work harder not smarter
meistermeier
0
130
Better Testing with Testcontainers
meistermeier
0
110
What the Graph?
meistermeier
1
1.3k
Beziehungsmanagement mit Spring Data Neo4j
meistermeier
1
85
Time to Graph Up with Spring Data Neo4j
meistermeier
1
1.5k
Thymeleaf - Eine Template-Engine für Entwickler und Designer
meistermeier
0
670
Wie soll man das denn nutzen? - Spring REST Docs
meistermeier
0
180
MVC 1.0
meistermeier
0
150
Other Decks in Programming
See All in Programming
ふん…おもしれぇ Parser。RubyKaigi 行ってやるぜ
aki_pin0
0
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
310
あなたはユーザーではない #PdENight
kajitack
4
290
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
330
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
370
ぼくの開発環境2026
yuzneri
1
290
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
2.1k
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
3
1.2k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
22
8.1k
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
110
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
210
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
490
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
The Curse of the Amulet
leimatthew05
1
9.3k
The Language of Interfaces
destraynor
162
26k
Practical Orchestrator
shlominoach
191
11k
Git: the NoSQL Database
bkeepers
PRO
432
66k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
290
Paper Plane
katiecoart
PRO
0
47k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
63
53k
Building Applications with DynamoDB
mza
96
6.9k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
610
A Tale of Four Properties
chriscoyier
162
24k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
360
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/