mysql spring-boot ssh ssh-tunnel

How to connect to a remote mysql over ssh tunnel in spring boot application

I have a spring boot application which is using mySQL db.DB is accessible on ssh via a different server.In Mysql Workbench i have created tunnel to access the mysql DB.

Now my question is there any way that i can do the same(tunnel over ssh) in my spring boot application? I have already searched on google but didn’t get any fix for it.

If anyone can give an idea how to implement that would be really helpful.