Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Controller
- Public class View{
- private AnyService anyService;
- Message message;
- @Autowired
- Public View(AnyService anyService){
- this.anyService=anyService;
- }
- @RequestMapping("/")
- public String getPage(Modal modal){
- modal.setAttribute("progress", progress);
- message.addObserver(...)
- return "/";
- }
- @RequestMapping("/do")
- public String doAnything(){
- anyService.update();
- return "redirect:/";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement