더북(TheBook)

3.4.5 스프링 부트: 자바 기반

스프링이 기술의 복잡함과 번거로움을 크게 줄여준 프레임워크라는 데에는 이견이 없습니다. 그럼에도 불구하고 스프링을 원하는 대로 사용하려면 여러 가지 설정을 해야 합니다. 실제로 스프링으로 개발할 때는 다음과 같이 정보를 설정합니다.

스프링 설정 정보

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/
          javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
          version="4.0">
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/spring-config/applicationContext.xml
        </param-value>
    </context-param>
    <listener>
        <listener-class>
            org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>
    <servlet>
        <servlet-name>dispatcher</servlet-name>
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.