При попытке скомпилировать приложение Spring Boot я получаю следующее. Он отлично работает на исходной машине, на которой я начал это создавать, но теперь я на новой машине и получаю эту ошибку.
Я скопировал все свои приложения и реквизиты и ничего не увидел почему он больше не компилируется.
WARN 66721 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Failed to initialize dependency 'dataSourceScriptDatabaseInitializer' of LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseInitializer' parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class
2024-12-07T16:31:34.911-05:00 INFO 66721 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2024-12-07T16:31:34.916-05:00 INFO 66721 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-12-07T16:31:34.925-05:00 ERROR 66721 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
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
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
МОЙ 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
3.3.1
com.example
f1-dashboard
0.0.1-SNAPSHOT
f1-dashboard
Formula 1 Dashboard
21
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-web
org.javassist
javassist
3.23.1-GA
org.springframework.boot
spring-boot-devtools
runtime
true
org.postgresql
postgresql
42.6.0
runtime
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin
Мое приложение.prop:
spring.datasource.url=jdbc:postgresql://localhost:5432/f1dashboard
spring.datasource.username=postgres
spring.datasource.password=1234
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
Подробнее здесь: https://stackoverflow.com/questions/792 ... o-build-on
Я получаю сообщение об ошибке сборки в приложении Spring Boot при попытке сборки на новой машине. ⇐ JAVA
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Я получаю ошибку сборки в приложении весенней загрузки при попытке сборки на новой машине.
Anonymous » » в форуме JAVA - 0 Ответы
- 27 Просмотры
-
Последнее сообщение Anonymous
-