web.xml ( 생성 및 코드 수정 ) > SPRING1

본문 바로가기

사이트 내 전체검색

뒤로가기 SPRING1

web.xml ( 생성 및 코드 수정 )

페이지 정보

작성자 관리자 작성일 24-07-16 12:44 조회 532 댓글 0

본문

b1e5b85cde2e41e51e82c8911d5207f0_1721050768_273.png
 



<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">


    <listener>

        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

    </listener>


    <context-param>

        <param-name>contextConfigLocation</param-name>

        <param-value>/WEB-INF/root-context.xml</param-value>

    </context-param>


    <servlet>

        <servlet-name>app</servlet-name>

        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

        <init-param>

            <param-name>contextConfigLocation</param-name>

            <param-value>/WEB-INF/servlet-context.xml</param-value>

        </init-param>

        <load-on-startup>1</load-on-startup>

    </servlet>


    <servlet-mapping>

        <servlet-name>app</servlet-name>

        <url-pattern>/</url-pattern>

    </servlet-mapping>

</web-app>

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기