I can not connect Spring boot with SQL Server
spring.datasource.url=jdbc:sqlserver://192.168.134.92;databaseName=Attendance_Device spring.datasource.username=emon spring.datasource.password=1234 spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver #spring.jpa.show-sql=true spring.jpa.hibernate.dialect=org.hibernate.dialect.SQLServer2018Dialect spring.jpa.hibernate.ddl-auto = false
Advertisement
Answer
I recommend check 3 things
- Gradle or pom.xml dependency setting check.
- Make sure dependencies of SQL set what you using
- DB server firewall check
- Check your server or router. Firewall could be block networking
- DB server address or id/pw check
- Check your DB infos