Written by
spring-style
on
on
스프링 컨트롤러 개념 정리
스프링 컨트롤러 개념 정리
///index public class IndexController implements Controller{ @Override public ModelAndView handkeRequest(HttpservleRequest....){ } }
Controll ctrl= new []; ctrl.handleRequest(request,....);
@RequsetMapping("/")
-클래스를 개별적으로 만들어 줄 필요없다
///index @Controller public class IndexController implements Controller{ @RequestMapping("/index"); public String text (){ System.out.print("test"); return "/index"; } } ///
void 일경우 Resolver 에러
리턴값이 없으므로
dispatcher-servlet.xml
// 컨트롤러, 매핑 사용하기 위해 추가
from http://hhnee.tistory.com/116 by ccl(A) rewrite - 2021-12-14 01:27:53