|
|
1
2
根据 the list of HTTP response codes 406(不可接受)表示
因此,您可能没有将Accept头设置为允许接受XML。通常,JavaScript默认情况下需要JSON。因此,要设置Accept头,请使用如下内容:
或者,您可以设置web服务来生成application/json。 |
|
|
2
1
|
|
|
3
1
确保
|
|
|
Chirag Arora · 如何在构造函数中使用注入的依赖关系? 1 年前 |
|
|
Harley Jackson · Spring表单验证多个消息资源 2 年前 |
|
|
OmB · 我想在Spring JPA规范的WHERE子句中包含括号 2 年前 |