목차
SpringMVC 글로벌 예외가없는 경우 흐름도
SpringMVC 글로벌 예외 흐름도
실제로 ModelAndView 객체입니다
구성 파일
ApplicationContext.xml
<? xml 버전 = "1.0"alcoding = "utf-8"?> <beans xmlns = "http://www.springframework.org/schema/beans"xmlns : xsi = "http://ww.w.w3.org/2001/xmlschema-instance" xmlns : aop = "http://www.springframework.org/schema/aop"xmlns : tx = "http://www.springframework.org/schema/tx"xmlns : jdbc = "http://www.spramframwork.org/schema/gramework.org/schema/spramwork.org. xmlns : context = "http://www.springframework.org/schema/context"xmlns : task = "http://www.springframework.org/schema/task"xsi : schemalocation = "http://www.springframwork.org/schema/comext http://www.springframework.org/schema/context http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://wwwww.spramegm.org/ http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd "> <context : component-scan base-package ="com.mmall "> <!-컨트롤러의 책임을 스캔하는 데 대한 책임이 있습니다. -> <context : exclude-filter type = "Annotation"expression = "org.springframework.steretype.controller"/> </context : component-scan> <aop : sagnes-autoproxy/> <!-스프링 일정-> <context : context : context : contextpath.properties. Resource = "ApplicationContext-Spring-session.xml"/> <import resource = "ApplicationContext-datasource.xml"/> </beans>
Dispatcher-Servlet.xml
<? xml 버전 = "1.0"alcoding = "utf-8"?> <beans xmlns = "http://www.springframework.org/schema/beans"xmlns : xsi = "http://ww.w.w3.org/2001/xmlschema-instance" xmlns : p = "http://www.springframework.org/schema/p"xmlns : context = "http://www.springframework.org/schema/context" xmlns : mvc = "http://www.springframework.org/schema/mvc"xmlns : aop = "http://www.springframework.org/schema/schema/aop"xsi : skemalocation = "http://www.spramframwork.org/schema http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.sprampramework.org/schema/context/spring-conxt.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd "> <!-SpringMVC 스캔 패키지는 반복 된 스카 스카를 방지하기 위해 컨트롤러에 지정됩니다. Annotation-Config = "true"use-default-filters = "false"> <context : include-filter type = "주석"표현 = "org.springframework.steretype.controller"/> </context : component-scan> <mvc : annotation-driven> <mvc : message-converters> <property name = "suppartedMediAteation-driven> <MVC : <slist> <value> text/plain; charset = utf-8 </value> <talue> text/html; charset = utf-8 </value> </list> </property> </bean> <bean> <property name = "supportedMediAtypes"> <list> value> application/json; charset = utf-8 </value> </mvc : </bean>>/bean>>> </bean>>> </bean>> </bean> </bean. </mvc : Annotation-Driven> <mvc : interceptors> <!-여기에 정의되어 있습니다. 여기에 정의됩니다. 여기에 정의됩니다. 모두가 인터셉트됩니다-> <mvc : mvc : interceptor> <!-관리/a.do/manage/*-> <!-관리/b.do/*-> <!-관리/save/save.do/manage/**->-관리/detailt/detailt/anmain/manage/manage/detail. PATH = "/관리/**"/> <!-<MVC : 제외 매핑 경로 = "/관리/사용자/로그인"/>-> <bean/> </mvc : interceptor> </mvc : interceptors> </beans>
요약
위는이 기사의 전체 내용입니다. 이 기사의 내용에 모든 사람의 연구 나 작업에 대한 특정 참조 가치가 있기를 바랍니다. 궁금한 점이 있으면 의사 소통을 위해 메시지를 남길 수 있습니다. Wulin.com을 지원 해주셔서 감사합니다.