Posts by Jean Coppieters • 381 points
9 posts
-
0
votes1
answer868
viewsA: Request Application/PDF generating file with wrong information[Angularjs+Nodejs]
I found the solution in the following way: In the back-end, which as I commented was just a router, I chose to change it to that endpoint, so as to receive the request that it redirects in the…
-
0
votes1
answer868
viewsQ: Request Application/PDF generating file with wrong information[Angularjs+Nodejs]
I have an Angularjs+Node(Express) application totally Restless. The back end only serves to validate requests and route to other applications, holders of business rules. At some point, my front…
-
1
votes1
answer1615
viewsA: Ajax Request for Controller Spring
The problem is that the parameters are like Requestparam, but the values are going in the body of the request. So much so that if you give a post on Uri "http://localhost:8080/viewSummary?…
-
2
votes2
answers187
viewsA: Doubt with use of Optional
Hello! As far as I’m concerned, you’re confusing it. See, you are accessing the name of the profession, a string, and are waiting for it to return the parent object, profession. for(Pessoa p :…
javaanswered Jean Coppieters 381 -
4
votes1
answer93
viewsA: Use an sql class. Connection for each task or just a globally referenced one?
Hello, young man! The recommended is that you create a Factory of connections to the bank, a DAO (Data Access Object) to manipulate the access and acquisition of the information to the bank and,…
-
2
votes1
answer63
viewsA: SQL - Problem Naming Variables
Man, in this case, I’d say you do the sums separately, and then cross-check with the results you got on your main selection. Something more or less like this: select cod_prod, s1.quantidade_soma as…
-
6
votes1
answer944
viewsA: How to switch between the next element and the previous element of a Listiterator with just one click?
Hello, young man! Man, that’s an easier question to explain by drawing, but I’ll try by text. The iterator has as reference the list in question and will also have as reference the current item.…
-
0
votes3
answers1826
viewsA: Object search/registration via REST url and registration with SPRING
Hello, young man! You are using "@Pathvariable" instead of "@Requestparam". If you’re going to use it like that, the code should look like this: @RequestMapping(value = "/{nome}", method =…
-
2
votes2
answers142
viewsA: Calling the same condition in the code
Hello! The polite thing is that you separate the responsibilities there. Predicate<ConnectivityManager> connectionValidator = c -> null != c.getActiveNetworkInfo() &&…