Raizekas

Untitled

Apr 28th, 2021
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package lt.kompanija.testuotoju_spring_boot_pirma_pamoka.controller;
  2.  
  3. import org.springframework.web.bind.annotation.GetMapping;
  4. import org.springframework.web.bind.annotation.RequestParam;
  5. import org.springframework.web.bind.annotation.RestController;
  6.  
  7. @RestController
  8. public class MainControllerTest
  9. {
  10. @GetMapping("/sveiki")
  11. public String pasveikintiVartotoja(@RequestParam String vardas, @RequestParam String pavarde)
  12. {
  13. return "Testinis atsakas. Sveiki, " + vardas + " " + pavarde;
  14. }
  15. }
  16.  
RAW Paste Data