Title: Providing MessageConverter for RestTemplate · Issue #206 · androidannotations/androidannotations · GitHub
Open Graph Title: Providing MessageConverter for RestTemplate · Issue #206 · androidannotations/androidannotations
X Title: Providing MessageConverter for RestTemplate · Issue #206 · androidannotations/androidannotations
Description: @royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons. It's quite obvious that no one needs all the default converters, we usually only need one converter. Th...
Open Graph Description: @royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons. It's quite obvious that no one needs all the default converters...
X Description: @royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons. It's quite obvious that no one needs all the default conver...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/206
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Providing MessageConverter for RestTemplate","articleBody":"@royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons.\n\nIt's quite obvious that no one needs all the default converters, we usually only need one converter.\n\nThis change also means that by default, a `@Rest` annotated interface will come with en empty RestTemplate that will have no `MessageConverter`. To add one, we must do: `restClient.getRestTemplate().getMessageConverters().add(new MappingJacksonHttpMessageConverter());`\n\nWe should provide a new annotation (or a new attribute) to let users specify the MessageConverters.\n\n``` java\n@Rest \n@Converters({MappingJacksonHttpMessageConverter.class, XmlAwareFormHttpMessageConverter.class})\npublic interface RestClient {\n}\n```\n\nWe should check that they have a default constructor. We could also allow classes annotated with `@EBean`, but I'm not sure this would provide much added value for now.\n","author":{"url":"https://github.com/pyricau","@type":"Person","name":"pyricau"},"datePublished":"2012-05-25T17:07:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/206/androidannotations/issues/206"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92de9bc3-a73f-e152-c1a9-43e3bcf100f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B980:10A562:2EA2F5:3FFAE2:6A613677 |
| html-safe-nonce | 7ae5f328aae7660b6c709af672f6fecece335ed2a47b150d665d00ec33fe194e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTgwOjEwQTU2MjoyRUEyRjU6M0ZGQUUyOjZBNjEzNjc3IiwidmlzaXRvcl9pZCI6IjE0OTcxOTA2MjI5NTY2OTcyMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39968e30e1d0aee6242a09fecde23390efb85cff302e6004e031a674dcd38e3d |
| hovercard-subject-tag | issue:4757251 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/206/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0e0a381da051343ce80e084d7fb78f5a5d9459640b061059edaebe19fa177df/androidannotations/androidannotations/issues/206 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0e0a381da051343ce80e084d7fb78f5a5d9459640b061059edaebe19fa177df/androidannotations/androidannotations/issues/206 |
| og:image:alt | @royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons. It's quite obvious that no one needs all the default converters... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pyricau |
| hostname | github.com |
| expected-hostname | github.com |
| None | c5eca2d5d770261725d2d44a57879a5bd9643e5b84204081dc36933ab40e63a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dac3a1c903b48538720e0bc780047237dd89fd4c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width