Here is a readymade template where you can download this repository and start building your spring-hibernate products.  Here Mysql and Mongo also configured additionally.