Commit 01c2a7f
Publish RabbitMQ messages as JSON instead of Java serialization
The avatar update event (and any other RabbitTemplate publish) was serialized
with the default SimpleMessageConverter, producing
application/x-java-serialized-object instead of JSON. The JacksonJsonMessageConverter
was only wired into the listener container factory (consuming), not the
auto-configured RabbitTemplate (publishing).
Expose a single JacksonJsonMessageConverter bean so Spring Boot applies it to the
auto-configured RabbitTemplate, and reuse it in the listener factory.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8c8ca0e commit 01c2a7f
1 file changed
Lines changed: 15 additions & 2 deletions
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
61 | | - | |
| 73 | + | |
| 74 | + | |
62 | 75 | | |
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
67 | | - | |
| 80 | + | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| |||
0 commit comments