Posts by Wilson Tamarozzi • 382 points
26 posts
-
0
votes1
answer100
viewsA: Golang - Dependency Verification
Buddy, there are two ways to do this. Solution 1 Create a structure with everything that needs to be transported, facilitating even handling information within the system. type Control struct {…
golanganswered Wilson Tamarozzi 382 -
0
votes1
answer77
viewsA: How to show reason for error 422 in GO
I found that to show errors be 400 or 422 is possible to take from Bindjson. Would be more like this: func postPerson(c *gin.Context) { var person models.Person err := c.BindJSON(&person) if err…
golanganswered Wilson Tamarozzi 382 -
1
votes1
answer77
viewsQ: How to show reason for error 422 in GO
Lately I’m breaking my head too much to debug the POST and PUT requests where HTTP 422 error always occurs (Incorrect input format) In my project I am using the GIN framework to make a JSON BIND…
golangasked Wilson Tamarozzi 382 -
0
votes2
answers70
viewsA: Angularjs HTTP 415
Well, after much searching I found a 'better gambiarra' ... at the time of setting the options of the HTTP GET method you should pass Date blank '', automatically it will exchange the content-type…
angularjsanswered Wilson Tamarozzi 382 -
0
votes2
answers70
viewsQ: Angularjs HTTP 415
I’m having trouble making a GET request, giving error 415 (Unsupported Media Type). Although already set the headers he seems not to respect. Does anyone have any suggestions of what to do to solve…
angularjsasked Wilson Tamarozzi 382 -
0
votes1
answer210
viewsA: Customize error page to connect timed out in Spring
Friend, I did the following to create the customizable error pages. Use Apache Tiles to manage my views. web xml. <error-page> <error-code>500</error-code>…
-
4
votes3
answers404
viewsQ: Grab Preview image of a video / listFiles() does not work
I have two problems in a super simple project that I am developing in which I did not find a solution in the Forum nor in Google, the project is a video management. I’ll leave the Github link below…
-
5
votes2
answers446
viewsQ: In the POO when to use Re-turn?
I have a question related to POO, when should I use the return in a method?! Since when I pass an object to the method and modifications are made to it, I do not need to Return, example below:…
-
5
votes2
answers200
viewsQ: Grab thumbnail of videos (Windows)
I Googled several terms of how to get the thumbnail of the videos but only found how to "generate" the thumbnail of a frame of the video using the Xuggler, but I’m making mistakes. The mistake I’m…
javaasked Wilson Tamarozzi 382 -
0
votes0
answers175
viewsQ: Configure project on tomcat8 Ubuntu Server
I’m having trouble setting up my project on tomcat8, I use Ubuntu server. I created a DNS or which points to my server on port 8081 and presents the Tomcat homepage without problems. I’m having…
-
0
votes1
answer280
viewsQ: Doubt database / batch control system
I’m working on a project where I came across a problem where I don’t know what would be the most efficient way to do it. My project has a register of products in which I want to control by lot,…
-
0
votes2
answers816
viewsA: Create Jsonarray with objects?
Friend, change the return of your method to STRING and in the return jsonVendas; do the following return jsonVendas.toString();
javaanswered Wilson Tamarozzi 382 -
1
votes1
answer1940
viewsA: Maven: Generate JAR with Dependencies / Directory recources
Come on!! After a lot of pointless search on Google, I ended up finding 3 links that helped me generate my JAR with Custom Dependencies / Libraries / Directories Resources. Follow the link sequence…
-
4
votes1
answer1940
viewsQ: Maven: Generate JAR with Dependencies / Directory recources
I’m very lay with Maven and the fact that there is a lot of material on the Internet I ended up getting lost as I perform the operation below: I need to generate the JAR Runnable of my project with…
-
0
votes2
answers481
viewsA: How to put responsive Ivs regardless of height size?
Friend, could you set a Max-height and a Max-width in the image dimension, with this would not give problem, or limit the user and always input the image in a specific size. Below are the CSS…
-
0
votes2
answers30
viewsA: Tomcat Problem - "Obsolete Files from Server"
Friend, try cleaning the Server and Project Setup folder by going to Window > Show View > Server. Right click on the server next Clean Tomcat Work Directory and then Clean..., done this only…
-
0
votes1
answer61
viewsA: fireTableDataChanged in Abstracttreetablemodel Swingx package
Well, I don’t quite remember the source of the solution, but I used the modelSupport that comes within the AbstractTreeTableModel it contains the function fireNewRoot that gives a Reload in…
-
1
votes1
answer61
viewsQ: fireTableDataChanged in Abstracttreetablemodel Swingx package
I’m having doubts about how to make a Reload on the objects of a JXTreeTable using a Model > AbstractTreeTableModel. The AbstractTableModel of a JTable normal has the fireTableDataChanged, but…
-
2
votes1
answer46
viewsA: Jpanel disappearing while getting a get on it
After much searching, I ended up arriving at the answer unintentionally. I did this, I created a class PessoaPanelController and established the PessoaPanel in it, I called the @PostConstruct and…
-
0
votes1
answer46
viewsQ: Jpanel disappearing while getting a get on it
I am building a layered application using the Spring Framework, I am new and well be doing it the wrong way. My problem is this, as you can see in the image below I have the PrincipalFrame and the…
-
3
votes1
answer1585
viewsQ: Generate Runnable Jar from a Maven project
I am having difficulty generating a Jar file from my application from Maven, I followed the following tutorial. Mkyoung.com It comes to generate the Jar but with a super reduced size and at the time…
-
1
votes1
answer113
viewsA: Jdialog does not show Jlabel
Strange to min appeared to Jlabel writing TEST TEST TEST Check your version of Java and if that was not your doubt clarify.…
-
4
votes1
answer292
viewsQ: Jtable does not save information when focusing on the cell
My JTable does not save information when there is focus on the cell. To effectively save the information I need to focus manually and then click on the "Register". How can I make this process…
-
1
votes2
answers1435
viewsA: Doubt about Listener for Jcombobox
It’s personal the only solution I found was. public void setModalidade() { this.cboModalidade.removeActionListener(this); //<-- Quando eu vou setar o combobox com dados eu desativo o…
-
1
votes2
answers1435
viewsQ: Doubt about Listener for Jcombobox
Someone would know to tell me some listener for when I select an item in Jcombobox it gives me a warning for example. Remembering that when I open my component(Jframe) I select items inside by the…
-
2
votes1
answer349
viewsQ: Layout management issues with Miglayout
I’m having trouble managing the layout of a Jframe that is a test. How are you: How I wish it were: import java.awt.Color; import java.awt.GridLayout; import javax.swing.JFrame; import…