반응형
Notice
Recent Posts
Recent Comments
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

차근차근

egov 전자정부프레임워크 스프링 ajax 설정 본문

개발

egov 전자정부프레임워크 스프링 ajax 설정

철산92 2019. 12. 11. 23:05
반응형

pom.xml 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    <!-- ajax start-->
        <dependency>       
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>       
            <version>2.4</version>       
            <classifier>jdk15</classifier>
        </dependency>
         
        <dependency>
             <groupId>org.codehaus.jackson</groupId>
             <artifactId>jackson-mapper-asl</artifactId>
             <version>1.9.13</version>
        </dependency>
        
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.5.1</version>
        </dependency>
        
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.5.1</version>
        </dependency>
    <!-- ajax end-->
 

dispatcher-servlet.xml

1
2
3
4
5
<!-- jsonView -->
    <bean id="beanNameResolver" class="org.springframework.web.servlet.view.BeanNameViewResolver" p:order="0"/>
        <property name="contentType" value="application/json;charset=UTF-8"></property>
    </bean>
 

web.xml

1
2
3
4
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.ajax</url-pattern>
    </servlet-mapping>

 

반응형
Comments