Olá! Não entendo nada de Java e nem tenho nada de ambiente java na minha máquina. O arquivo jar do curso mas não está rodando aqui. Tentei esses os dois comandos abaixo.
java -jar cdcreact-1.0.0-SNAPSHOT.jar
java -Dspring.datasource.username=root -Dspring.datasource.password= -jar cdcreact-1.0.0-SNAPSHOT.jar
Uso Windows e para executar comandos o Git Bash. Os erros que aparecem pra mim são esses:
(...)
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
(...)
Caused by: java.net.ConnectException: Connection refused: connect
(...)
2017-10-26 10:53:51.683 WARN 12500 --- [ main] o.h.e.jdbc.internal.JdbcServicesImpl : HHH000342: Could not obtain connection to query metadata : Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
(...)
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
(...)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
(...)
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
(...)
Obs: Aproveito para sugerir que seja incluso mais detalhes do passo a passo pra rodar esse jar no curso. To bem perdida com esse jar.