Spring Boot 3 serverside forwarding
The best articles and links to interesting posts for technical team leaders building sophisticated websites, applications and mobile apps. Think about: software architecture, hardware architecture, design, programming, frameworks, scalability, performance, quality assurance, security, resolving issues, fixing bugs and Android.
Geplaatst door
Techie
op
10:00 AM
0
reacties
Labels: forwarding, jakarta servlet, java, kotlin, modelandview, oas, server-side, serverside, spring boot 3, spring mvc, swagger
Add to:
Del.icio.us
DZone
Reddit
Digg
To mock a Retrofit2 call which returns Call<Void?> in the interface client like this:
@POST("/events")
fun registerEvent(@Body requestDto: EventRequestDto): Call<Void?>
is not super-obvious, since it can show this error when invoked:
Cannot invoke "retrofit2.Call.request()" because "call$iv" is null
java.lang.NullPointerException: Cannot invoke "retrofit2.Call.request()" because "call$iv" is null