Answer the question
In order to leave comments, you need to log in
springboot. How to connect to MS SQL Server 2000?
As long as the gradle jpa is commented, everything works. Then I get a bunch of errors:
...
2019-02-09 09:36:53.347 ERROR 15652 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Failed to execute isValid() for connection, configure connection test query (null).
...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.AbstractMethodError
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation group: 'net.sourceforge.jtds', name: 'jtds', version: '1.3.1'
}
spring.datasource.url=jdbc:jtds:sqlserver://192.168.0.1:1433/mydb
spring.datasource.driver-class-name=net.sourceforge.jtds.jdbc.Driver
spring.datasource.username=admin
spring.datasource.password=admin
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question