F
F
foo bar2019-02-09 07:39:41
Java
foo bar, 2019-02-09 07:39:41

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

build.gradle
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'
}

application.properties
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

1 answer(s)
A
aol-nnov, 2019-02-09
@fake1978

Are you straight to the toaster? Do not do it this way.
https://stackoverflow.com/a/42249000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question