Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver' when compiling Grails project

徘徊边缘 提交于 2019-11-29 13:45:28

I have had similar problems in the past.

I've changed the version of JTDS to 1.2.6 and all works fine.

By the way - you don't need to add the jar manually. You just have to add the following to your BuildConfig.groovy (in the dependencies section):

runtime 'net.sourceforge.jtds:jtds:1.2.6'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!