4 ms·
>The real reason to move away from Java is to move towards different software architectures (microservices!) This is a SpringBoot microservice: @RestControlle
by alasdair_ 7y ago
>The real reason to move away from Java is to move towards different software architectures (microservices!)
This is a SpringBoot microservice:
@RestController
public class BasicController {
@RequestMapping(value="/{id}", method = RequestMethod.GET)
public String get(@PathVariable("id")Integer id) {
return doStuff(id);
}
}
I'm not sure it's any more verbose than the equivalent Ruby on Rails microservice (for example).