报 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
Java工程化、高性能及分布式、高性能、性能调优、Spring,MyBatis,Netty源码分析学习交流啊656060703
2017-08-11
spring springmvc mybatis redis 技术分享 相互交流 欢迎正在学习的小伙伴加入:563200502
2017-08-11