In my Spring Bootapp WAR, I have an application.properties file wherein I have defined following datasource properties:
spring.datasource.url=jdbc:mysql://localhost/test?autoReconnect=true&useSSL=false&rewriteBatchedStatements=true
spring.datasource.username=used
spring.datasource.password=password
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
with this, I am able to connect to the database.
Now, I want to connect to another database through SSH tunnel. How should I specify spring.datasource.url to get such connection?
Please note I don't want to write any boiler plate Java code to do this SSH tunneling!
P.S. I Googled but could not find satisfactory answer anywhere.
