Код: Выделить всё
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Код: Выделить всё
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/Sat
spring.datasource.username=user_auto
spring.datasource.password=
Уже пытаюсь добавить и удалить:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
Мой pom.xml
Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.6.8
Подробнее здесь: [url]https://stackoverflow.com/questions/72383247/spring-failed-to-configure-a-datasource-url-attribute-is-not-specified-and-n[/url]