转换为 json 格式时面临的问题,似乎就像 jar 冲突)。下面提到的是我的 pom.xml
http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 com.fg prjSpringMVC 战争 0.0.1-SNAPSHOT prjSpringMVC Maven Webapp http://maven.apache.org 3.0.5.RELEASE junit junit 3.8 .1 测试 org.springframework spring-context ${spring.version} org.springframework spring-webmvc ${spring.version}
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
<build>
<finalName>prjSpringMVC</finalName>
</build>
任何帮助/回复感谢。