January 2018
Intermediate to advanced
414 pages
10h 29m
English
Let's go back to our example that we created previously:
package com.microservices.chapter2import org.springframework.beans.factory.annotation.Autowiredimport org.springframework.boot.autoconfigure.SpringBootApplicationimport org.springframework.boot.runApplicationimport org.springframework.stereotype.Controllerimport org.springframework.web.bind.annotation.PathVariableimport org.springframework.web.bind.annotation.RequestMappingimport org.springframework.web.bind.annotation.RequestMethodimport org.springframework.web.bind.annotation.ResponseBody@SpringBootApplicationclass Chapter2Application@Controllerclass FirstController(val exampleService: ExampleService) { @RequestMapping(value = "/user/{name}", method ...Read now
Unlock full access