Posts by caiomaia • 144 points
8 posts
-
-1
votes1
answer583
viewsA: How to refresh on another page after entering data in the database
As in the model client x server you do not maintain a persistent connection to the server, in the case when a request is sent to be processed, to be answered that connection ends and you no longer…
-
0
votes1
answer284
viewsA: How to hide div with cookies after a second user visit
It is necessary to set the cookie on the user’s first visit, and it can be done by jquery in this way: // O parâmetro de expiração é setado em dias, e ele não é obrigatório. $.cookie("visited", 1, {…
-
0
votes1
answer584
views -
0
votes1
answer464
viewsA: Searching for documents with mongoDB
If you are using Spring, you can use the Mongodb module from Spring Data, or if you only want a POJO mapper you can use the morphia. On mongodb’s own site there are several options to be used. To…
-
1
votes1
answer1324
viewsA: java.lang.Classnotfoundexception error: "Caused by: java.lang.Classnotfoundexception: com.fasterxml.Jackson.core.type.Typereference
Make sure Jackson’s dependencies are included in your jar. You can do this by opening the .jar of your project and checking if there is the .jar Jackson’s inside, if not, add and package again. If…
-
1
votes1
answer423
viewsA: How can I persist data using Arraylist?
You can define the ArrayList<String> as an attribute of the class, so that the scope of the whole class has access to the value, so you can use and change in any method of the same: public…
-
0
votes2
answers405
viewsA: Error sending email using Javamail
The estate mail.smtp.ssl.trust can be used to explicitly say that you must trust the smtp host certificate. In your case: props.put("mail.smtp.ssl.trust", "xxxxxxx.xxxxxxx.org.br"); Translated from…
-
8
votes2
answers7668
viewsA: What does the @Component annotation do?
Spring supports the annotation @Component since his version 2.5, and it serves to indicate to the framework that that class is a bean which should be administered by the implementation of Ioc…