스프링 mvc.xml의 간단한 구성

<XML 버전 = "1.0" "UTF-8"인코딩 =?>
<콩 
의 xmlns = "http://www.springframework.org/schema/beans"
에 xmlns :이 xsi = "http://www.w3.org / 2001 / 된 XMLSchema 인스턴스 "
의 xmlns : 컨텍스트 ="http://www.springframework.org/schema/context "
의 xmlns : MVC ="http://www.springframework.org/schema/mvc "

는 xsi :의 schemaLocation ="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
        HTTP : / /www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.1 .XSD ">

<! - @Controller ->
<배경 : 성분 주사 기본 패키지 = "com.jfdata.controller"> </ 컨텍스트 : 성분 주사>
<! - - @Service!>
<컨텍스트 : 성분 주사 기본 패키지 = "com.jfdata. service.impl ">는 </ 컨텍스트 : 컴포넌트 -

추천

출처blog.csdn.net/qq_37889636/article/details/80575845