Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro no Mavem

Ao adicionar a dependência do spring-boot-starter-data-jpa com a versão 1.4.2 no mavem, ao rodar a aplicação aparace o seguinte erro:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.sql.DataSource org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.dataSource; nested exception is 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).

Ao colocar versões mais recente, consigo rodar a aplicação, mas não consigo importar o DriverManagerDaraSource. Já tentei colocar as 2 versões no mavem também, mas ainda aparece o mesmo erro. Como posso resolver? obrigado.

1 resposta
solução!

Já consegui identificar o erro. No mavem adicionei a dependência abaixo e foi resolvido.

<dependency>
    <groupId>org.hsqldb</groupId>
    <artifactId>hsqldb</artifactId>
    <version>2.4.0</version>
</dependency>