-3
A
答えて
2
HTTPエンティティは、ヘッダとボディの一部からなる、HTTP要求または応答の大部分です。リクエストやステータスラインのないリクエストやレスポンス全体(特定のヘッダフィールドのみがエンティティの一部と見なされます)があります。
ResponseEntityはHTTP応答全体を表します。ステータスコード、ヘッダー、本文など、すべてのものを制御できます。
0
HttpEntityは、要求メッセージと応答メッセージの両方をラップします。しかし、ResponseEntityは応答メッセージのみをラップします。 ResponseEntityは基本的にHttpEntityから継承します。応答エンティティは、親クラスとは異なりHTTPステータスコードを持つこともできます。 例:
new ResponseEntity<String>("Hello World", responseHeaders, HttpStatus.CREATED);
関連する問題
- 1. このResponseEntityとは何ですか?
- 2. Spring ResponseEntity and forward
- 3. Spring Securityのauthenticated()とcsrfの違いは何ですか?
- 4. Spring DataのMongoTemplateとMongoRepositoryの違いは何ですか?
- 5. Spring Bootの@ComponentScanと@EnableAutoConfigurationの違いは何ですか?
- 6. Spring MVCのHandlerInterceptorとHandlerInceptorAdaptorの違いは何ですか?
- 7. Springで-Drun.profilesと-Dspring.profiles.activeの違いは何ですか?
- 8. 春 - 次のようにしてResponseEntityと一緒に、私は非常に頻繁に使用しています私のコードHttpEntityでHttpEntity
- 9. Spring SingletonとJava Singleeleton(デザインパターン)の違いは何ですか?
- 10. マネージドBeanとSpring Controllerの違いは何ですか?
- 11. ZookeeperとSpring Cloud設定サーバーの違いは何ですか?
- 12. Spring Dispatcher ServletとWeb Deployment Discriptorの違いは何ですか?
- 13. SpringインターセプタとAOPの違いは何ですか?
- 14. Spring MVC ResponseEntity Hystrixフォールバック
- 15. spring boot rest ResponseEntity responses
- 16. spring mvc interceptor:postHandleでのResponseEntityへのアクセス
- 17. Spring ResponseEntity <JSONObject> HttpMediaTypeNotAcceptableException
- 18. Spring RESTコントローラでの単純REST実装とHTTP InboundアダプタでのSpring Integrationとの違いは何ですか?
- 19. EJB、hibernate、spring、JSFの違いは何ですか?
- 20. Socialauth、Scribe-Java、Spring Socialの主な違いは何ですか?
- 21. Spring Batch JobExecutionクラスのgetAllFailureExceptions()メソッドとgetFailureExceptions()メソッドの違いは何ですか?
- 22. $と$$の違いは何ですか?
- 23. `##`と `hashCode`の違いは何ですか?
- 24. typedefとの違いは何ですか?
- 25. NodeJS:「./ ..」と「..」の違いは何ですか?
- 26. {}())と{})の違いは何ですか?
- 27. `&`と `ref`の違いは何ですか?
- 28. `==`と `is`の違いは何ですか?
- 29. difftimeと ' - 'の違いは何ですか?
- 30. #{} $ {}と%{}の違いは何ですか?
あなたは読みました[APIドキュメント](http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/http/ResponseEntity.html) ? – Jesper