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
140
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
Work harder not smarter
meistermeier
0
59
Better Testing with Testcontainers
meistermeier
0
71
What the Graph?
meistermeier
1
1.1k
Beziehungsmanagement mit Spring Data Neo4j
meistermeier
0
62
Time to Graph Up with Spring Data Neo4j
meistermeier
1
1.3k
Thymeleaf - Eine Template-Engine für Entwickler und Designer
meistermeier
0
440
Wie soll man das denn nutzen? - Spring REST Docs
meistermeier
0
150
MVC 1.0
meistermeier
0
110
Other Decks in Programming
See All in Programming
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
330
Javaエンジニアのための Nodejs/Nuxt3入門
hidekatsu_izuno
0
270
OpenTelemetry のサービスという概念について
azukiazusa1
2
1k
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
300
What We Can Learn From OSS
inouehi
0
380
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
400
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
180
ゆるい個人開発のススメ
kuroppe1819
10
920
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
220
Code Reviews
bkuhlmann
4
860
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
300
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
360
Featured
See All Featured
What's new in Ruby 2.0
geeforr
336
31k
GitHub's CSS Performance
jonrohan
1023
450k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
1
3.4k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Statistics for Hackers
jakevdp
789
220k
A designer walks into a library…
pauljervisheath
199
23k
Debugging Ruby Performance
tmm1
69
11k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
74
41k
Gamification - CAS2011
davidbonilla
76
4.6k
Designing the Hi-DPI Web
ddemaree
276
33k
Principles of Awesome APIs and How to Build Them.
keavy
119
16k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
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/