💯 I’m conveniently so convenient teapawt.net/rgielen/status/1019615…
+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
Replying to @starbuxman
I’d love to see a consolidated guide: controller + simple business logic. Two options: render directly via @ResponseBody and via a template engine and view resolution. I’ve always thought @RestController raises more questions than it answers.
Solving world problems. Again. teapawt.net/rigorigorei/status/101…
Gettin my Brazilian accent ready for the World Cup ⚽️ teapawt.net/algaworks/status/10099…
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 youtu.be/qsIkWczoan8
10k people wishing they never have to google criteria join hql aggregation ever again teapawt.net/hibernate/status/10016…
I’m such an enabler teapawt.net/oktadev/status/9884262…
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…
Yep, I’ve still got it! #SaveAClick teapawt.net/baeldung/status/980731…
Once again: insert me, magic happens teapawt.net/starbuxman/status/9630…
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;
}
}
SpringRestController retweeted
“Spring-Boot の @RestController の単体テストを記述する - Qiita” htn.to/Q8jF8T
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 🤷♀️. – at Stuttgart, Germany
Glad I could help teapawt.net/springcentral/status/8…
REST endpoint to cloud in a single tweet. Language conciseness courtesy of @springboot and @groovylang teapawt.net/starbuxman/status/8468…
1
Replying to @epragt @RyanVanderwerf
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
Just ask me nicely. Saying please would help teapawt.net/springoverflow/status/…
How to use @XmlJavaTypeAdapter in @RestController parameters? dlvr.it/LqsT7H













