daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @GetMapping("/edit/{id}")
  2.     public ModelAndView editDevice( @PathVariable("id") Long deviceId) {
  3.         ModelAndView mav = new ModelAndView("device-form");
  4.         mav.addObject("device", deviceRepository.findById(deviceId).orElseThrow(()-> new IllegalArgumentException("jakis tam tekst ze nie ma takiego obiektu")));
  5.         return mav;
  6.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top