created multi-module structure, it's finally works, but still needs some changes. One moment, i didn't configure Intellij Idea for deploying .war file, so if you want to test it, you need to manually create it and put in deployment folder