2
respostas

Erro na geração de Dados

Utilizei o comando java -Dspring.datasource.password=suaSenha -jar jar-cdc-react.jar porém digito senha e o mesmo não funciona.

Meu Jar C:\Users\nicol\Desktop\treinamento\React\my-app encontra-se dentro da pasta my app com o nome cdc jar

no console.log

The development server has disconnected.
Refresh the page if necessary.
bundle.js:15553:5
chegou resposta
App.js:19
./src/App.js
  Line 2:   'logo' is defined but never used                                                  no-unused-vars
  Line 36:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash
  Line 39:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash
  Line 40:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash
  Line 41:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash

no spring:

Microsoft Windows [versão 10.0.16299.248]
(c) 2017 Microsoft Corporation. Todos os direitos reservados.

C:\Users\nicol>cd C:\Users\nicol\Desktop\treinamento\React\my-app

C:\Users\nicol\Desktop\treinamento\React\my-app>java -Dspring.datasource.password=1@3$ -jar cdc.jar



2018-02-19 10:50:11.047  INFO 17656 --- [           main] br.com.caelum.cdcreact.Boot              : Starting Boot v1.0.0-SNAPSHOT on DESKTOP-FH5BI0D with PID 17656 (C:\Users\nicol\Desktop\treinamento\React\my-app\cdc.jar started by nicol in C:\Users\nicol\Desktop\treinamento\React\my-app)
2018-02-19 10:50:11.052  INFO 17656 --- [           main] br.com.caelum.cdcreact.Boot              : No active profile set, falling back to default profiles: default
2018-02-19 10:50:11.120  INFO 17656 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1af60adb: startup date [Mon Feb 19 10:50:11 BRT 2018]; root of context hierarchy
2018-02-19 10:50:12.349  INFO 17656 --- [           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]]
2018-02-19 10:50:12.956  INFO 17656 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$615f7d78] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-19 10:50:13.782  INFO 17656 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2018-02-19 10:50:13.805  INFO 17656 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2018-02-19 10:50:13.808  INFO 17656 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.30
2018-02-19 10:50:15.209  INFO 17656 --- [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.
2018-02-19 10:50:15.288  INFO 17656 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-02-19 10:50:15.288  INFO 17656 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization compl
2 respostas

Nicolle , tambem tive esse problema, tenta usar -jar antes de setar o password no datasource e tenta passar o password como string

java -jar Dspring.datasource.password="SUA_SENHA_ENTRE_ASPAS"  jar-cdc-react.jar

Utilizei o comando porém ao retornar dados a tela não retorna. Testei no mozilla e no chrome.

java -Dspring.datasource.password="1@3$" -jar cdcreact-1.0.0-SNAPSHOT.jar
O retorno de dados  no link : 
[]