Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ### TarefasController V4
  2.  
  3. ```java
  4. package br.com.caelum.tarefas.controller;
  5.  
  6. import java.util.List;
  7.  
  8. import javax.validation.Valid;
  9.  
  10. import org.springframework.stereotype.Controller;
  11. import org.springframework.ui.Model;
  12. import org.springframework.validation.BindingResult;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14.  
  15. import br.com.caelum.tarefas.dao.JdbcTarefaDao;
  16. import br.com.caelum.tarefas.modelo.Tarefa;
  17.  
  18. @Controller
  19. public class TarefasController {
  20.  
  21. private JdbcTarefaDao tarefaDao;
  22.  
  23. public TarefasController(JdbcTarefaDao tarefaDao) {
  24. this.tarefaDao = tarefaDao;
  25. }
  26.  
  27. //...
  28. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement