2
respostas

estou com problemas para executar o arquivo jar-cdc-react.jar

C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact>java -Dspring.datasource.password=suaSenha -jar jar-cdc-react.jar

. __ _ __ _ _ /\ / _'_ _ _ _()_ _ __ _ \ \ \ ( ( )___ | ' | '| | ' / ` | \ \ \ \/ ___)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||_| |_, | / / / / =========||==============|__/=//// :: Spring Boot :: (v1.3.1.RELEASE)

2019-05-02 08:06:33.208 INFO 15980 --- [ main] br.com.caelum.cdcreact.Boot : Starting Boot v1.0.0-SNAPSHOT on TI-05 with PID 15980 (C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact\jar-cdc-react.jar started by Rodrigo.C in C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact) 2019-05-02 08:06:33.213 INFO 15980 --- [ main] br.com.caelum.cdcreact.Boot : No active profile set, falling back to default profiles: default 2019-05-02 08:06:33.304 INFO 15980 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@d1fda3: startup date [Thu May 02 08:06:33 BRT 2019]; root of context hierarchy

2 respostas

Oi Rodrigo tudo bem ?

Quando você digita o comando para rodar o jar, no lugar de suaSenha você tem que usar a senha do seu MySQL. E o nome do jar que fazemos o download é outro, o comando correto seria :

 java -Dspring.datasource.password=suaSenha -jar cdcreact-1.0.0-SNAPSHOT

Caso o seu MySQL não tenha senha, você pode rodar o jar usando o comando:

java -jar cdcreact-1.0.0-SNAPSHOT.jar

executei o comando e deu a mesma mensagem

C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact>java -Dspring.datasource.password=1q2w3e4r -jar cdcreact-1.0.0-SNAPSHOT.jar

. __ _ __ _ _ /\ / _'_ _ _ _()_ _ __ _ \ \ \ ( ( )___ | ' | '| | ' / ` | \ \ \ \/ ___)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||_| |_, | / / / / =========||==============|__/=//// :: Spring Boot :: (v1.3.1.RELEASE)

2019-05-02 12:49:36.299 INFO 7032 --- [ main] br.com.caelum.cdcreact.Boot : Starting Boot v1.0.0-SNAPSHOT on TI-05 with PID 7032 (C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact\cdcreact-1.0.0-SNAPSHOT.jar started by Rodrigo.C in C:\Users\Rodrigo.c\Desktop\CURSOS\CursoReact) 2019-05-02 12:49:36.303 INFO 7032 --- [ main] br.com.caelum.cdcreact.Boot : No active profile set, falling back to default profiles: default 2019-05-02 12:49:36.345 INFO 7032 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@d1fda3: startup date [Thu May 02 12:49:36 BRT 2019]; root of context hierarchy 2019-05-02 12:49:37.114 INFO 7032 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]] 2019-05-02 12:49:37.447 INFO 7032 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$90e3fb7d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-05-02 12:49:37.991 INFO 7032 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) 2019-05-02 12:49:38.001 INFO 7032 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat 2019-05-02 12:49:38.006 INFO 7032 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.30 2019-05-02 12:49:39.492 INFO 7032 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2019-05-02 12:49:39.575 INFO 7032 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-05-02 12:49:39.575 INFO 7032 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3230 ms