I developed a web application in spring boot which can deployed from a webserver in tomcat and connects to database server directly.But now I have to switch to a another database which is not accessible from the webserver.So I was advised to follow the pattern
Web Server -> App Server -> Database Server
But I am not sure How to convert my web app into this format.Becuse current my format is
Web Server -> Database Server
Could anyone explain how to implement this.Any help is appreciated?