SHARE
TWEET

Untitled

a guest Jun 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Controller
  2. Public class View{
  3.  
  4. private AnyService anyService;
  5. Message message;
  6.  
  7. @Autowired
  8. Public View(AnyService anyService){
  9. this.anyService=anyService;
  10. }
  11.  
  12. @RequestMapping("/")
  13. public String getPage(Modal modal){
  14. modal.setAttribute("progress", progress);
  15. message.addObserver(...)
  16. return "/";
  17. }
  18.  
  19. @RequestMapping("/do")
  20. public String doAnything(){
  21.  
  22. anyService.update();
  23. return "redirect:/";
  24. }
  25.  
  26. }
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