Posts by Efraim Ferreira • 23 points
5 posts
-
0
votes0
answers650
viewsQ: Request SOAP with Spring using A1 certificate
I am trying to make a Request for sending Nfe to the Sefaz SP server, but I am always receiving the certificate error not found. I created a Bean that returns the Webservicetemplate, and this is my…
-
0
votes2
answers715
viewsA: JSON format in Localdate field
I believe it is Serializer. As I am not sure of the Date Class you are using, if it is a Date, you can use it as follows: Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd").create(); EDIT:…
-
0
votes1
answer863
viewsA: Model attribute unit tests in spring boot application
I believe the mock assertion is wrong. Try to use like this: when(restaurantService.findByNameIgnoreCaseContaining(eq(filter))).thenReturn(Arrays.asList(first, second)); or, more generally, a return…
-
0
votes1
answer117
viewsA: p:dialog being called by several Buttons in the system
I do not believe it is the best alternative, because it can disturb and very much the maintenance, since you start to play a little of the programming for the View. But vc can pass an object as a…
-
2
votes1
answer134
viewsQ: Configure Relational and Non-relational Databases in the same project with Spring-Data + Hibernate
I am trying to create a Java application where I need to configure two databases: Mongodb and Mysql. My idea is to use Spring-Data with Hibernate for both banks, but I found only tutorials for…