问题
I'm trying to deploy a java web app on jetty on azure web app service that uses postgres data source. The problem is that I don't know how to add postgres JDBC driver to global jetty classpath, which is required by jetty to create the data source before deploying my app (hence I can't just add the driver to WEB-INF/lib
subfolder of my war).
I've tried to create site/wwwroot/lib/ext
folder and put the driver there, but it seems that jetty's ext module which should automatically add all jars from this folder to the global classpath is not enabled.
Any suggestions?
Thanks!
来源:https://stackoverflow.com/questions/51324531/how-to-add-custom-jars-to-global-jetty-classpath-on-azure-web-app-service