// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/service/api/TodoService.java
// public interface TodoService {
//     public List<String> allTodos();
//     public void addTodo(String todo);
//     public void deleteTodo(String todo);
//     public void deleteAll();
//     public void updateTodo(int position, String todo);
// }


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.in28minutes.springmvc.services.web.service.api.TodoService;
package com.in28minutes.springmvc.services.web.controller;




@Controller
@RequestMapping("/todo")
public class TodoController {

	@Autowired
// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/service/api/TodoService.java
// public interface TodoService {
//     public List<String> allTodos();
//     public void addTodo(String todo);
//     public void deleteTodo(String todo);
//     public void deleteAll();
//     public void updateTodo(int position, String todo);
// }


// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/controller/TodoController.java
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.in28minutes.springmvc.services.web.service.api.TodoService;

package com.in28minutes.springmvc.services.web.controller;




@Controller
@RequestMapping("/todo")
public class TodoController {

	@Autowired
	private TodoService todoService;