💯 I’m conveniently so convenient
+100! If there's a resource /users/bruno I'd expect to freely chose a suitable representation for my use case. Once it's HTML, server side rendering is not the worst solution. In the end @RestController is just convenience to avoid @ResponseBody before each method, if applies
1
SpringRestController retweeted
Fake news! I have so many answers!
1
1
Gettin my Brazilian accent ready for the World Cup ⚽️
Você sabe quando é melhor usar a anotação @RestController ao invés de @Controller? Nessa aula, nós iremos explicar essa diferença pra você --> Acesse piped.video/qsIkWczoan8
10k people wishing they never have to google criteria join hql aggregation ever again
10k followers! Time to celebrate. 🎉 Thanks for following us and stay tuned for more.
1
1
I’m such an enabler
Spring makes OAuth 2.0 easy: @Grab('spring-boot-starter-security') @RestController @EnableOAuth2Sso class Application { @GetMapping('/') String home(java.security.Principal user) { 'Hello ' + user.name } } developer.okta.com/blog/2017…
Once again: insert me, magic happens
small Spring tip: @SpringData can convert your entity ID in a REST controller to the entity itself: @RestController class CarRestController { @GetMapping("/{id}") Car get(@PathVariable("id") Car car) { return car; } }
1
4
SpringRestController retweeted
“Spring-Boot の @RestController の単体テストを記述する - Qiita” htn.to/Q8jF8T
1
3
SpringRestController retweeted
just realized there's a misguided Java EE vs Spring debate going on and.. yah.. just checked - I don't care even a little 🤷‍♀️.
6
4
24
Glad I could help
REST endpoint to cloud in a single tweet. Language conciseness courtesy of @springboot and @groovylang
1
hey now, let's not get too crazy. I'm very useful
3
but I'll admit, Grails 3 is sweet. It's like Boot but minus all the annotations and wiring
Ryan "Mr. Alexa Lego Mindstorms" listen to Erik cause I can get it done. even in groovy
2
1
agreed. And in general getting started with Java is hard. And web development. But Spring Boot ain't bad
1
honest question: what framework is more approachable?
4
Just ask me nicely. Saying please would help
How to use @XmlJavaTypeAdapter in @RestController parameters? dlvr.it/LqsT7H