Spring MVC @RequestBody请求依赖条件

2019-03-08  本文已影响0人  leo1091
Spring配置文件添加
1、<mvc:annotation-driven/>
2、<context:component-scan base-package="com.cn.hnust.controller" />
pom文件依赖
<dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-mapper-asl</artifactId>
    <version>1.9.13</version>
</dependency>
上一篇 下一篇

猜你喜欢

热点阅读