Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'ru.sergalas.spring.database.pool.ConnectionPool' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:342)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1172)
at ru.sergalas.spring.Main.main(Main.java:17)
plugins {
id 'org.springframework.boot' version '2.7.8'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
group 'ru.sergalas'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.postgresql:postgresql'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion '7.3'
}
2023-02-07T14:04:19.026+0300 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Configure build' completed
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring root project 'spring-starter'.
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all files for configuration ':classpath'.
2023-02-07T14:04:19.033+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.7.8.
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.8 > org.springframework.boot:spring-boot-gradle-plugin:2.7.8
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.7.8.
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-buildpack-platform/2.7.8/spring-boot-buildpack-platform-2.7.8.pom'.
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-buildpack-platform/2.7.8/spring-boot-buildpack-platform-2.7.8.pom'. Received status code 403 from server: Forbidden
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.7.8.
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.8 > org.springframework.boot:spring-boot-gradle-plugin:2.7.8
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.7.8.
2023-02-07T14:04:19.034+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-loader-tools/2.7.8/spring-boot-loader-tools-2.7.8.pom'.
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-loader-tools/2.7.8/spring-boot-loader-tools-2.7.8.pom'. Received status code 403 from server: Forbidden
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.apache.commons:commons-compress:1.21.
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.8 > org.springframework.boot:spring-boot-gradle-plugin:2.7.8
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.apache.commons:commons-compress:1.21.
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://plugins.gradle.org/m2/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom'.
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom'. Received status code 403 from server: Forbidden
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework:spring-core:5.3.25.
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.8 > org.springframework.boot:spring-boot-gradle-plugin:2.7.8
2023-02-07T14:04:19.035+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.springframework:spring-core:5.3.25.
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/spring-core/5.3.25/spring-core-5.3.25.pom'.
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'https://jcenter.bintray.com/org/springframework/spring-core/5.3.25/spring-core-5.3.25.pom'. Received status code 403 from server: Forbidden
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
2023-02-07T14:04:19.036+0300 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
2023-02-07T14:04:19.037+0300 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 873ms
2023-02-07T14:04:19.037+0300 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' started
repo1 {
url "https://repo1.maven.org/maven2/"
}
A problem occurred evaluating root project 'hibernate-starte'.
> Could not find method repo1() for arguments [build_dx4w4jwpsyb5l6a3lob1jt1aa$_run_closure1$_closure5@60258a40] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
если maven {
url "https://repo1.maven.org/maven2/"
}
Could not find org.hibernate.orm:hibernate-core:5.4.28.Final.
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html