Posts by Jonathan Code • 47 points
7 posts
-
1
votes2
answers627
viewsA: Fetch API cannot load [URL]. Response for preflight has invalid HTTP status code 404
Thank you for your attention I solved the problem added that line in Cors settings. .antMatchers(HttpMethod.OPTIONS, "/**").permitAll() If I declare only POST/PUT does not work. I have to esudar…
-
2
votes2
answers627
viewsQ: Fetch API cannot load [URL]. Response for preflight has invalid HTTP status code 404
Greetings ! I am facing the following problem, I make a request [POST] via Fetch API and "call" does not conclude. REQUEST VIA Fetch API const requestInfo = { method: 'POST', body: JSON.stringify({…
-
1
votes1
answer300
viewsA: How to transform the feedback (Finditerable) from a query in the database (mongoDB) to a list of objects of type DTO.
Following the friend’s guidelines: /users/57084/erick-maia package com.simple.dao; import com.google.gson.Gson; import com.mongodb.MongoClient; import com.mongodb.client.FindIterable; import…
-
0
votes3
answers1757
viewsA: Problem creating script . sh to enter a directory
Maybe it could be a security level issue... Have you already taken a look if the user of estra running the script without permission to read such directory ? I use this routine in the company:…
-
0
votes1
answer300
viewsQ: How to transform the feedback (Finditerable) from a query in the database (mongoDB) to a list of objects of type DTO.
Bank structure: >db.produtos.find().pretty(); { "_id" : ObjectId("58879057e53276e2f7bf43be"), "descricao" : "Bisnaguinha", "preco" : 4.8 } { "_id" : ObjectId("58879067e53276e2f7bf43bf"),…
-
-1
votes3
answers3666
viewsA: Connect Mysql C#
Greetings ! Friend, I believe there are several ways to make that connection. Here’s one I used on my college project last semester. string Source = "aonde o banco esta"; string Banco = "qual…
-
0
votes1
answer748
viewsQ: Object reference not defined for an object instance. C# (on installation)
By the error message, it was understood that there is an object not instantiated, in which I would be making reference. Error: However, this same application works perfectly on the development…