Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver

后端 未结 2 1608
慢半拍i
慢半拍i 2020-12-20 17:02

I am getting an exception while running my spring boot application, it say unable to create bean of datasource and caused of this exception is that it unable to detect my Dr

2条回答
  •  旧时难觅i
    2020-12-20 17:46

    Is the jar present on your system? You are forcing maven to get the dependency from the system and if it is not on that path maven will fail. Can you replace the tag with these :

    
        com.microsoft
        sqljdbc4
        3.0
    
    

    Source: https://mvnrepository.com/artifact/com.microsoft/sqljdbc4/3.0

提交回复
热议问题