// Path: src/main/java/com/in28minutes/exception/ExceptionController.java
// @ControllerAdvice
// public class ExceptionController {
// 
// 	private Log logger = LogFactory.getLog(ExceptionController.class);
// 
// 	@ExceptionHandler(value = Exception.class)
// 	public String handleException(HttpServletRequest request, Exception ex) {
// 		logger.error("Request " + request.getRequestURL()
// 				+ " Threw an Exception", ex);
// 		return "error";
// 	}
// 
// }


import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.SessionAttributes;
import com.in28minutes.exception.ExceptionController;
package com.in28minutes.todo;





@Controller
@SessionAttributes("name")
public class TodoController {

// Path: src/main/java/com/in28minutes/exception/ExceptionController.java
// @ControllerAdvice
// public class ExceptionController {
// 
// 	private Log logger = LogFactory.getLog(ExceptionController.class);
// 
// 	@ExceptionHandler(value = Exception.class)
// 	public String handleException(HttpServletRequest request, Exception ex) {
// 		logger.error("Request " + request.getRequestURL()
// 				+ " Threw an Exception", ex);
// 		return "error";
// 	}
// 
// }


// Path: src/main/java/com/in28minutes/todo/TodoController.java
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.SessionAttributes;
import com.in28minutes.exception.ExceptionController;

package com.in28minutes.todo;





@Controller
@SessionAttributes("name")
public class TodoController {

	private Log logger = LogFactory.getLog(ExceptionController.class);