How to use spring-webmvc instead of Jersey during rest plugin development for Jira server?

Hi there.

I’m new in Jira plugin development. I need to develop some Jira plugin with REST end-points.

Jira SDK is now generating REST module based on Jersey. I’ve spent more than one week trying to understand how to switch it to spring-webmvc instead of Jersey, but there is no luck.
Is there any way to do that?

I would be a twice thankful for the link with such kind of project examples. Unfortunately, I haven’t found anything like that.

Many thanks in advance!