问题
I'm using Maven to install Spring Boot project that uses SQLServer, but Tests phase fails: 'SQLServerException: This driver is not configured for integrated authentication', caused by 'UnsatisfiedLinkError: no sqljdbc_auth in java.library.path'. It happens only while using Maven, not while compiling the project in eclipse. I use maven-surefire-plugin.
I copied sqljdbc_auth windows\sysWOW64 and to Java\jre1.8.0_211\bin and some more libraries, but it doesn't seems to be the solution.
回答1:
Seems you are not using type-4 JDBC for SQLServer which require platform dependent library loading. I suggest you switch to type-4 SQLSERVER driver so that you only need depends on driver jar. Should be good solution.
来源:https://stackoverflow.com/questions/56953643/unsatisfiedlinkerror-no-sqljdbc-auth-in-java-library-path