Posts by Renan.Silvano • 61 points
5 posts
-
0
votes4
answers428
viewsA: How to validate data passed to a constructor?
Class constructors by definition have as return a new class instance. Once you define another type as a return, it becomes a class method, not a constructor. In your case, nothing prevents you from…
-
2
votes1
answer914
viewsA: How to rollback the database using Spring Framework
By default, in the occurrence of a RuntimeException changes made to the transaction are rollback (except when treated in a block catch), already checked Exceptions will not perform rollback. As can…
-
1
votes2
answers96
viewsA: Spring’s Hot Swap features "Bindexception: Address already in use: Cannot bind"
I believe you’ve identified the problem. Looking at the code, I wondered what happened to the Thread you created when Spring tried to do Reload. Because it wasn’t meant to end (while (true) {),…
-
0
votes1
answer871
viewsA: What is the difference between Resttemplate for Spring boot Feingclient?
Good Fernando, as you said, seems to have the same purpose. I have already had the opportunity to implement both models in Spring. What served me as a criterion for using one or the other was really…
-
0
votes2
answers96
viewsA: Spring’s Hot Swap features "Bindexception: Address already in use: Cannot bind"
For me, in an existing Springboot application using Intellij IDE v2019.1 the following project configuration and IDE was enough for Hot Swap to work. 1: Add the dependency below to pom.xml.…