Not able to connect to Azure SQL Database server using spring

前端 未结 3 1103
挽巷
挽巷 2021-01-24 21:24

I am able to connect to database which is having ip address,but if i have my database created in Azure SQL Database server in that i am not able to connect using spring configu

3条回答
  •  囚心锁ツ
    2021-01-24 22:15

    Change your connection string like "jdbc:sqlserver://{HostName}.database.windows.net;database={databaseName};encrypt=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30". And use sqljdbc4 jar file. Hope it should work.

提交回复
热议问题