Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. package acme.features.anonymous.shout;
  2.  
  3. import javax.annotation.PostConstruct;
  4.  
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Controller;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8.  
  9. import acme.entities.shouts.Shout;
  10. import acme.framework.components.BasicCommand;
  11. import acme.framework.controllers.AbstractController;
  12. import acme.framework.entities.Anonymous;
  13.  
  14. @Controller
  15. @RequestMapping("anonymous/shout/")
  16. public class AnonymousShoutController extends AbstractController<Anonymous, Shout> {
  17.  
  18. @Autowired
  19. private AnonymousShoutListService listService;
  20.  
  21.  
  22. @PostConstruct
  23. private void initialise() {
  24. super.addBasicCommand(BasicCommand.LIST, this.listService);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement