@fake1978

Spring Boot. Как подключится к MS SQL Server 2000?

Пока в gradle jpa комментирован все работает. После получаю кучу ошибок:
...
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.properites
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
  • Вопрос задан
  • 1030 просмотров
Решения вопроса 1
@aol-nnov
Ты сразу на тостер? Не надо так.

https://stackoverflow.com/a/42249000
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
Bell Integrator Ульяновск
До 400 000 ₽
Bell Integrator Хабаровск
До 400 000 ₽
Bell Integrator Ижевск
До 400 000 ₽