报 415 错误的,需要下载 jackson-databind 的jar
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
</dependency>
2017-08-26
报 405 错误的,需要下载 jackson-databind 的jar
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
</dependency>
2017-08-26
解决中文乱码
@RequestMapping(value = "object",produces = "text/html;charset=UTF-8")
@ResponseBody
public String object(User user) {
return user.toString();
}
@RequestMapping(value = "object",produces = "text/html;charset=UTF-8")
@ResponseBody
public String object(User user) {
return user.toString();
}
2017-08-26
已采纳回答 / 慕姐6188622
不是 Web.xml需要自己写 自己配置 mavaen 建立完毕 需要自己来建立代码文件 还有配置文件信息 以及web.xml view 还有配置pom.xml
2017-08-15
Java工程化、高性能及分布式、高性能、性能调优、Spring,MyBatis,Netty源码分析学习交流啊656060703
2017-08-11
spring springmvc mybatis redis 技术分享 相互交流 欢迎正在学习的小伙伴加入:563200502
2017-08-11