相关疑难解决方法(0)

Maven 全新安装:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources

我不知道是什么问题。尝试为大学项目安装 maven。我已经按照此处的说明安装了 Maven 。图片环境变量cmd中的maven版本 我也尝试删除.m2文件。当我尝试通过 InteliJ 中的插件安装 maven 时,我收到消息:“进程终止”,没有额外信息。然后我尝试使用 mvn clean install 在终端上安装,我得到了这个。

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.college:sprinttool:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-data-jpa:jar -> duplicate declaration of version (?) @ line 50, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-test:jar -> duplicate declaration of version (?) @ line 55, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because …
Run Code Online (Sandbox Code Playgroud)

java spring maven spring-boot

8
推荐指数
6
解决办法
2万
查看次数

Spring Boot:无法配置数据源:未指定“url”属性且无法配置嵌入式数据源

当我运行我的网络应用程序时抛出以下错误。

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
Run Code Online (Sandbox Code Playgroud)

抛出错误的描述如下,

Description:

Failed to configure a DataSource: 'url' attribute is …
Run Code Online (Sandbox Code Playgroud)

java spring spring-boot

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

java ×2

spring ×2

spring-boot ×2

maven ×1