Posts by Alberto Souza • 19 points
7 posts
-
0
votes1
answer34
viewsA: Capture exceptions in spring
It depends on the webservice, if it is SOAP you will generate a FAULT as a response... In general this is already mapped automatically when you generate the stubs... If you are using pure http,…
-
2
votes1
answer46
viewsA: Spring capture and errors
The classic way is you drop an Exception and leave the point of the code that invokes your class methods annotated with @Service, solve what to do with it. If you’re working in a web application, an…
springanswered Alberto Souza 19 -
-2
votes2
answers865
viewsA: I can’t save to the database in a Spring MVC project
Hi, 404 is because the ok page doesn’t exist. Just create... Regarding the Controller @Transactional Annotation, I don’t agree. The controller invokes multiple business points from your application,…
-
0
votes2
answers445
viewsA: Dependency Injection - Two objects implementing the same interface
Although injecting the two implementations in the same point of the system is strange, the problem had nothing to do with it. You probably asked for the injection using concrete attributes, while…
-
0
votes1
answer179
viewsA: Problem with Rest controller in Spring
You need to say, in Requestmapping, that your method wants to return for example a JSON or an XML. Since you didn’t set anything up, he’s using the search convention for a JSP based on the address…
-
0
votes1
answer55
viewsA: Transaction in the Spring
The problem is not about Spring itself. Exception indicates that you are passing an object with the id set to the persist method. When the object has an id set, but was not loaded by Entitymanager,…
-
0
votes1
answer121
viewsA: Spring Modelandview not working properly with AJAX callback
In this case, switching to solve and playing the responsibility for Tiles, you will continue to return an html. Perhaps the best way would be to return a JSON with the destinations. To do this,…