Posts by emanuel cavalcante • 518 points
19 posts
-
0
votes0
answers29
viewsQ: How to make the spring batch Itemreader return a list by reading from a file
In Spring Batch does anyone know how to make Flatfileitemreaderbuilder return a list? Or if there is any other class that reads the file and returns a list? I have this Reader code: fun…
-
2
votes3
answers12331
viewsA: has been blocked by CORS policy: No 'Access-Control-Allow-Origin'
Create a file called Corsfilter.java in com.stefanini.contatos.config Inside this file enter the following code: import org.springframework.core.Ordered; import…
-
-1
votes1
answer52
viewsQ: Java.Util.Set does not add new elements
In the store variable when trying to add a new element of type "Store" it always stays with only one element and does not add a new element. And never add a new one. Follow the codes: Metodo main:…
javaasked emanuel cavalcante 518 -
1
votes1
answer690
viewsQ: @Autowired does not work with my service
I always run the method that accesses what is in another class with @Autowired it is null, follow the code below: @Component public class TokenAuthenticationService { @Autowired…
-
19
votes2
answers17539
viewsA: Can’t bind to 'ngModel' Since it isn’t a known Property of 'input'
I found the error in my code, I just added the import { FormsModule } from '@angular/forms'; Within my service.module.ts, thus getting import { Ngmodule } from '@angular/core'; import { CommonModule…
-
0
votes2
answers214
viewsA: Custom header angular 4, error does not authenticate
Something similar happened in my project, but then I realized it was the version of my dependencies, inside the root folder of your project runs ng --version And put the appears.…
angularanswered emanuel cavalcante 518 -
0
votes1
answer316
viewsA: How to deploy Angular and Java in Heroku?
Good evening Rodrigo, hosting has to be for Java, taking into account that you will generate a file . WAR, and this file will contain both java code and angular.
-
7
votes2
answers17539
viewsQ: Can’t bind to 'ngModel' Since it isn’t a known Property of 'input'
I’m with [(ngModel)]="cliente.nome" this code keeps generating the error of: Can't bind to 'ngModel' since it isn't a known property of 'input'. ("="col-md-4 control-label" for="idNome">Nome:…
-
0
votes1
answer262
viewsQ: SQL group by returns duplicated POSTGRESQL
My query SQL is returning multiple Rows with the same id follows: SELECT distinct (c.nome), c.id, c.email,c.telefone1,c.telefone2, SUM(a.valor) AS "valorDaCompra",u.id AS "idLoja",u.nome AS…
-
0
votes2
answers78
viewsA: Date problem in Postgresql
To be able to find the answer: SELECT id_empresa, id_loja, avg(faturamento), avg(ticket_medio), avg(qtd_pecas),avg(qtd_atendimentos) FROM sumario_diario Where TO_CHAR(data_sumario, 'dy') = 'Tue' and…
-
1
votes2
answers78
viewsQ: Date problem in Postgresql
I have this query below and I want faturamento, ticket_medio and qtd_pecas, qtd_atendimentos, be divided by the numbers of Tuesdays. Example had 5 Tuesday fairs with registered values in this view,…
-
1
votes1
answer809
viewsQ: How to map an html page in Spring MVC
I have a Spring MVC project that will provide the Rest service to the front-end. But when creating a page . html the project does not recognize it and always from 404. Is there any configuration I…
-
0
votes0
answers370
viewsQ: Error accessing Websphere database
This error appears after installing the project(it installs everything normal and even runs and opened the project, but when it will access a page that makes the request to the error database):…
-
2
votes3
answers523
viewsQ: Error in Hibernate
I am trying to make a small interaction with the Mysql database but when I run the test class appears the following error: Exception in thread "main" java.lang.Nosuchmethoderror:…
-
0
votes1
answer320
viewsQ: Maven changing the faces-config.xml
I have an EJB project and my Maven keeps changing the faces-config.xml when I run "mvn install", Maven changes everything inside it leaving without the paths I specify, follows my "pom" file of the…
-
2
votes1
answer39
viewsQ: How to change the life cycle of the Maven?
I have an EJB project and would like to run the test after deploying my Air. Because I have a test on the ejb layer, which needs to access the ejbstubs inside the server(was), before I did it with…
-
0
votes1
answer506
viewsQ: Select in the database, only with jQuery
How do I make a select in the database using only a jQuery? I have two combobox and want to use their value to make a select in my database: $.getJSON('/MinhaDoenca/rest/hospital/get',…
-
3
votes2
answers763
viewsQ: Jquery consuming Web Service Rest
I would like to list the ceps of this json, follows him: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And that’s where I’m…
-
1
votes1
answer267
viewsQ: Maven calling Ant
I have a Maven project, I want Maven to "call" some target of ant, I’ve seen that there is a plugin "Maven-antrun-plugin" there on the apache site, but I can’t understand any example, someone could…