Setting up maven dependency for SQL Server

后端 未结 8 1841
小鲜肉
小鲜肉 2020-11-28 02:07

I am developing a portlet where I have Hibernate access to SQL Server database. I set up maven dependencies for it and try to find out SQL Server connector

8条回答
  •  广开言路
    2020-11-28 03:01

    Be careful with the answers above. sqljdbc4.jar is not distributed with under a public license which is why it is difficult to include it in a jar for runtime and distribution. See my answer below for more details and a much better solution. Your life will become much easier as mine did once I found this answer.

    https://stackoverflow.com/a/30111956/3368958

提交回复
热议问题