Since version 2.7.6 MoSKito has Springboot integration with autostart. Just add it maven dependency to start agent listening for incoming requests from MoSKito Inspect:
Why do you need it?
MoSKito itselfs starts as soon as first moskitorized producer is initialized. However in order to be able to connect with MoSKito Inspect to your local instance, you need the agent to be started and listening for incoming requests. The above code does just that.
What else do you need?
You will probably already have a dependency to moskito-webui in you pom if you use maven. But if not, you'll to add it: