Posts by Rafael Chagas • 195 points
15 posts
-
1
votes1
answer542
viewsA: Upload/Download large files with ASP.NET Core 2.2
You can use a form with enctype Multipart/form-data. It supports large files, sending files is done by parts only which is managed by the browser. I made a project available on Github with a Net…
-
0
votes2
answers1098
viewsA: Responsestatusexception - Spring boot - Return of the message
I did the test customizing an Exception but it didn’t work. It’s not the most elegant way but it solves your problem. @RestController @RequestMapping("product") public class ProductController {…
-
0
votes1
answer210
viewsA: Variable pom.xml that shows the location of the file
Try to use the ${project.basedir} https://cwiki.apache.org/confluence/display/MAVEN/Maven+Properties+Guide You can try to print the variables to check. I put an example on Github. Just run the mvn…
-
0
votes1
answer76
viewsA: Find out Docker-Compose error
Try to identify your error by running the command in the folder that has the Docker-Compose.yml file docker-compose logs The reported problem is looking more like an error of your application and…
-
1
votes1
answer38
viewsA: How do I open this function url in new tab in random link option
To open a link in a new tab just add the property target="_Blank" document.write ("<p><a target='_blank' href='"+links[nRand]+"' > BOTÃO </a></p>");…
-
0
votes1
answer43
viewsA: Hibernate mapping error
The code problem was in relationship mapping. Also, I switched @Notblank to @Notnull in the Date and Integer attributes. The @Notblank not suitable for these types. I put the example on Github with…
-
2
votes1
answer76
viewsA: Java Spring: Post method does not insert relationship id
Your request should be so. I set an example here at Github based on their classes. { "name": "Biblioteca test", "address": { "id":"1" } } Response…
-
1
votes1
answer481
viewsA: View data from an Api in a v-data-table, an object within a Vue js object, vuetify
You will have to use the slot to format the item. You can check the example based on your code here at codesandbox and versionei no Github for future consultation. <template> <v-app>…
-
0
votes2
answers330
viewsA: How do I work with the Javascript console?
'Cause you don’t try to import your component like that here. This way you can use the console to display the component object. <template> <div id="app"> <v-layout/> </div>…
-
0
votes1
answer466
viewsA: How to Maintain Mobile Self-adjusting Iframe?
I don’t know what your real need is with the use of iframe, I can only anticipate that it’s really boring working with them. There are many restrictions and problems arising from the use of iframe…
-
0
votes1
answer64
viewsA: READ XML IN ASP.NET CORE
I don’t know if this is what you want but I found it very simple, just you navigate the element "Description". List<Product> products = xDocument.Descendants("product").Select (p => new…
-
-2
votes1
answer49
viewsA: Ways to Refactor Long Forms?
You can separate the components so that you can work in a more isolated way with the logic of each. I made a small example of how you could separate your Components. The working example is here…
-
1
votes1
answer39
viewsA: org.apache.Maven.reactor.Mavenexecutionexception: Failed to validate POM for project
Missing you set the dependency version with.fasterxml.Jackson <dependency> <groupId>com.fasterxml.jackson</groupId> <artifactId>jackson-bom</artifactId>…
-
-1
votes2
answers125
viewsA: Format string with durations
You can try it like this. In the output formatting was the fixed time value since you are only treating minutes and seconds so the time will always be 00. String input = "1:25.684"; DateFormat…
javaanswered Rafael Chagas 195 -
0
votes1
answer354
viewsA: How to recover object ID in Jquery table row
A more elegant approach you can use would be the data Attributes. https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_global_data https://api.jquery.com/data/ I set up an example with this…