o erro é que ele nao está reconhecendo o banco, meu comando do prompt ficou assim, estou usando o mariaDb,
java -jar -Dspring.profiles.active=prod VanEscolar.jar -DVANESCOLAR_DATABASE_URL=jdbc:mariadb://127.0.0.1:3306/vanEscolar -DVANESCOLAR_DATABASE_USERNAME=root -DVANESCOLAR_DATABASE_PASSWORD=123 -DVANESCOLARPROJETO_JWT_SECRET=123456
Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is java.lang.RuntimeException: Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl, ${VANESCOLAR_DATABASE_URL}
properties de produção
spring.datasource.url=${VANESCOLAR_DATABASE_URL} spring.datasource.username=${VANESCOLAR_DATABASE_USERNAME} spring.datasource.password=${VANESCOLAR_DATABASE_PASSWORD}
spring.datasource.testWhileIdle=true spring.datasource.validationQuery=SELECT 1
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImproveNamingStrategy spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
jwt -Dspring.profiles.active=dev
forum.jwt.secret=${VANESCOLARPROJETO_JWT_SECRET} forum.jwt.expiration=86400000
milisegundos,
# #
actuator
management.endpoint.health.show-details=always management.endpoints.web.exposure.include=* info.app.name=@project.name@ info.app.description=@project.description@ info.app.version=@project.version@ info.app.encoding=@project.build.sourceEncoding@ info.app.java.version=@java.version@
spring boot admin server
spring.boot.admin.client.url=http://localhost:8081 management.info.env.enabled=true spring.boot.admin.client.enabled=false
spring.main.allow-bean-definition-overriding=true
valores normais do meu properties default
spring.datasource.url=jdbc:mariadb://127.0.0.1:3306/vanEscolar
spring.datasource.username=root
spring.datasource.password=123
forum.jwt.secret=rm'!@N=Ke!p8VTA2ZRKnMDQX5Uvm!m'D&]{@Vr?G;2?XhbC:Qa#9#eMLN}x3?JR3.2zrv)gYF^8:8>:XfB:Ww75N/emt9Yj[bQMNCWwW\J?N,nvH.<2.rw]e~vgak)X"v8HMH/7"2E
,^k@n<vE-wD3g9JWPy;CrY.Kd2_D])=><D?YhBaSua5hW%{2]_FVXzb98FH^b[X3jzVER&:jw2<=c38=>L/zBq
}C6tT*cCSVC^c]-L}&/