O PROJETO FUNCIONA SE AS CONFIGURAÇÕES ESTIVEREM SETADAS DIRETAMENTE NELE. PORÉM QUANDO USO O SERVIDOR DE CONFIG'S, TENHO O SEGUINTE ERRO
ERRO LANÇADO
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).
CONFIGURAÇÕES NO MICROSERVIÇO, bootstrap.yml
spring:
application:
name: 'cdt-config'
cloud:
config:
uri: http://localhost:8888
insira seu código aqui
CONFIGURAÇÕES NO SERVIDOR DE CONFIGURAÇÕES, NO APPLICATION.YML
spring:
application:
name: cdt-config
cloud:
config:
server:
git:
default-label: main
uri: ${URI_GITHUB}
username: ${USERNAME_GITHUB}
password: ${PASSWORD_GITHUB}
server:
port: 8888
MEU ARQUIVO "cdt-config.yml" NO GITHUB
spring:
jpa:
show-sql: true
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5Dialect
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/testeasterisk
username: root
password: 123456