빈 Maven 프로젝트를 설치할 수 없습니다.

앙투안

API를 만들려고합니다. Intellij Idea를 사용하여 Spring & Hibernate로 만들고 싶고 그중 어느 것도 사용하지 않았습니다.

intellij로 Spring 프로젝트를 만드는 데 성공했습니다. 하지만 프로젝트가 '비어있다'고하더라도 아직 아무것도 변경하지 않았고 메이븐이 설치할 수 없습니다.

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$NonEmbeddedConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
    at [...]

    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
    at [...]

    Caused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
    at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.getDriverClassName(DataSourceProperties.java:180)
    at [...]

내 pom.xml http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0

    <groupId>com.bloombooking.api</groupId>
    <artifactId>bloombookingapi</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>bloombookingapi</name>
    <description></description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.3.5.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>

어딘가에 어떤 종류의 속성이 필요할 수도 있지만 어떤 속성을 어디에 두어야할지 모르겠습니다 ...

앙투안

나는 무엇이 문제인지 발견했다!

그래서 내가 당신이 말한대로 구성하지 않은 것입니다. jdbc를 설치할 필요는 없었지만 (왜 필요하지 않은지 모르겠습니다) 파일에 몇 가지 속성을 넣을뿐입니다. /main/ressources/application.properties

spring.jpa.database=POSTGRESQL
spring.datasource.platform=postgres
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create-drop
spring.database.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/mybase
spring.datasource.username=username
spring.datasource.password=mdp

어쨌든 대답에 대한 Thx :)

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Maven 프로젝트를 구축 할 수 없습니다.

분류에서Dev

Maven 프로젝트를 구축 할 수 없습니다.

분류에서Dev

새 Maven 프로젝트를 생성 할 수 없습니다.

분류에서Dev

CXF 프로젝트에 maven docker jar를 실행할 수 없습니다.

분류에서Dev

인 IntelliJ에서 넷빈즈에 같은 방식으로 Maven 프로젝트 (gephi - 응용 프로그램)을 실행할 수 없습니다

분류에서Dev

각도 프로젝트를 설치할 수 없습니다 : npm install -g @ angular / cli

분류에서Dev

반응 프로젝트에 firbase를 설치할 수 없습니다.

분류에서Dev

Laravel 프로젝트에 Jetstream 패키지를 설치할 수 없습니다.

분류에서Dev

내 기존 프로젝트에 Hangfire를 설치할 수 없습니다.

분류에서Dev

angularjs : 내 프로젝트에 각도 쿠키를 설치할 수 없습니다.

분류에서Dev

내 프로젝트에 gulp-typescript를 설치할 수 없습니다.

분류에서Dev

Eclipse에서 Maven 프로젝트를 만들 수 없습니다.

분류에서Dev

Eclipse에서 Maven 프로젝트를 만들 수 없습니다.

분류에서Dev

intellij 내에서 Maven 프로젝트에서 단위 테스트를 실행할 수 없습니다.

분류에서Dev

오류 : 메인 클래스를 찾거나로드 할 수 없습니다 ...-Eclipse에서 Maven 프로젝트

분류에서Dev

이 사이트에 연결할 수 없습니다. localhost 연결을 거부했습니다. 빈 프로젝트

분류에서Dev

Maven 프로젝트에 서블릿을 추가 할 수 없습니다.

분류에서Dev

Eclipse Maven 프로젝트에서 종속성을 해결할 수 없습니다.

분류에서Dev

Intellij로 Maven 프로젝트를 제대로 만들 수 없습니다.

분류에서Dev

Maven 프로젝트를 실행할 수 없으며 빌드가 실패합니다. Maven에 대한 조언

분류에서Dev

심포니 프로젝트로 Gitlab-ci를 설정할 수 없습니다.

분류에서Dev

Microsoft.Rest.ClientRuntime은 Xamarin PCL 프로젝트에 설치할 수 없습니다.

분류에서Dev

Maven 프로젝트의 종속성을 업데이트 / 다운로드 할 수 없습니다.

분류에서Dev

Windows에 Django 설치로 인해 프로젝트를 만들 수 없습니다.

분류에서Dev

Maven 프로젝트를 생성 할 수없는 이유는 무엇입니까?

분류에서Dev

MVC 프로젝트의 기본 경로를 설정할 수 없습니다.

분류에서Dev

.NET Framework 4.7.2 프로젝트에서 Nuget 패키지를 설치할 수 없습니다.

분류에서Dev

Wikitude PhoneGap 플러그인을 설치하여 프로젝트에 Wikitude SDK를 추가 할 수 없습니다.

분류에서Dev

신속한 프로젝트에 cocoapod 마스터 리포지토리를 포드 설치할 수 없습니다.

Related 관련 기사

  1. 1

    Maven 프로젝트를 구축 할 수 없습니다.

  2. 2

    Maven 프로젝트를 구축 할 수 없습니다.

  3. 3

    새 Maven 프로젝트를 생성 할 수 없습니다.

  4. 4

    CXF 프로젝트에 maven docker jar를 실행할 수 없습니다.

  5. 5

    인 IntelliJ에서 넷빈즈에 같은 방식으로 Maven 프로젝트 (gephi - 응용 프로그램)을 실행할 수 없습니다

  6. 6

    각도 프로젝트를 설치할 수 없습니다 : npm install -g @ angular / cli

  7. 7

    반응 프로젝트에 firbase를 설치할 수 없습니다.

  8. 8

    Laravel 프로젝트에 Jetstream 패키지를 설치할 수 없습니다.

  9. 9

    내 기존 프로젝트에 Hangfire를 설치할 수 없습니다.

  10. 10

    angularjs : 내 프로젝트에 각도 쿠키를 설치할 수 없습니다.

  11. 11

    내 프로젝트에 gulp-typescript를 설치할 수 없습니다.

  12. 12

    Eclipse에서 Maven 프로젝트를 만들 수 없습니다.

  13. 13

    Eclipse에서 Maven 프로젝트를 만들 수 없습니다.

  14. 14

    intellij 내에서 Maven 프로젝트에서 단위 테스트를 실행할 수 없습니다.

  15. 15

    오류 : 메인 클래스를 찾거나로드 할 수 없습니다 ...-Eclipse에서 Maven 프로젝트

  16. 16

    이 사이트에 연결할 수 없습니다. localhost 연결을 거부했습니다. 빈 프로젝트

  17. 17

    Maven 프로젝트에 서블릿을 추가 할 수 없습니다.

  18. 18

    Eclipse Maven 프로젝트에서 종속성을 해결할 수 없습니다.

  19. 19

    Intellij로 Maven 프로젝트를 제대로 만들 수 없습니다.

  20. 20

    Maven 프로젝트를 실행할 수 없으며 빌드가 실패합니다. Maven에 대한 조언

  21. 21

    심포니 프로젝트로 Gitlab-ci를 설정할 수 없습니다.

  22. 22

    Microsoft.Rest.ClientRuntime은 Xamarin PCL 프로젝트에 설치할 수 없습니다.

  23. 23

    Maven 프로젝트의 종속성을 업데이트 / 다운로드 할 수 없습니다.

  24. 24

    Windows에 Django 설치로 인해 프로젝트를 만들 수 없습니다.

  25. 25

    Maven 프로젝트를 생성 할 수없는 이유는 무엇입니까?

  26. 26

    MVC 프로젝트의 기본 경로를 설정할 수 없습니다.

  27. 27

    .NET Framework 4.7.2 프로젝트에서 Nuget 패키지를 설치할 수 없습니다.

  28. 28

    Wikitude PhoneGap 플러그인을 설치하여 프로젝트에 Wikitude SDK를 추가 할 수 없습니다.

  29. 29

    신속한 프로젝트에 cocoapod 마스터 리포지토리를 포드 설치할 수 없습니다.

뜨겁다태그

보관