Where are Mappings being stored when using wiremock with java

225 views
Skip to first unread message

Rahul Verma

unread,
Nov 2, 2022, 3:50:16 AM11/2/22
to wiremock-user
Hi Folks,
I started exploring Wiremock and tried using Wiremeock server instance in java to run server and stub few Json Responses
Just wondering where are response being stored when stubbed and once the server stops everything vanishes . Is that in internal memory ?

Tom Akehurst

unread,
Nov 2, 2022, 10:32:22 AM11/2/22
to wiremock-user
By default they're stored in memory, but you can make them be saved to disk by setting the "persistent": true attribute, or Java equivalent .persistent(true).

You can also save everything currently just in memory with a POST to /__admin/mappings/save

Rahul Verma

unread,
Nov 3, 2022, 1:55:11 AM11/3/22
to wiremock-user
Thanks man
Reply all
Reply to author
Forward
0 new messages