Posts by Caio • 136 points
9 posts
-
0
votes3
answers1359
viewsA: How to resolve ERROR: HHH000346: Error During Managed flush [org.hibernate.Exception.Sqlgrammarexception: could not execute statement]
This error usually happens with Hibernate/JPA when we map our entities and the database already exists, and the framework is not responsible for generating the database scripts. So in the case as…
-
1
votes1
answer245
viewsA: Empty PDF when downloading using Spring Boot and Angularjs
Problem solved by changing the method on Angularjs: $http.post(mobioneEnvService.addPath("/operation/report/alerts/export"), params, {responseType:"arraybuffer"}) .then(function(response){ var blob…
-
0
votes1
answer245
viewsQ: Empty PDF when downloading using Spring Boot and Angularjs
I am creating an application where I need to return a PDF through an API call developed in Spring Boot through Angularjs, my code is like the below: Return of the API: ResponseEntity.ok()…
-
2
votes1
answer208
viewsA: How to distribute the entities among projects?
Surely this can be a big issue when it comes to distributed systems like Microservices, you can distribute the classes in common in one JAR separate and use in projects, but for this to really work…
-
2
votes1
answer403
viewsA: Doubt about changing data in java arrays
By your code it looks like you’re using a List, so you can do so: The method get(<>) returns the linked object with its index: //Criação da List List<Pessoa> list = new…
-
1
votes2
answers173
viewsA: How do I Generate MD5 Hash
Take a look at the code below: public static String toMD5(byte[] bytes){ MessageDigest md = null; try { md = MessageDigest.getInstance("MD5"); } catch (Exception e) { throw new RuntimeException(e);…
totalcrossanswered Caio 136 -
4
votes5
answers1745
viewsA: Console utilities.log()
Good afternoon As the folks said above used basically as a Debugger of your code, but I’ll give an example where the console log.() helps a lot, currently working with frameworks like Angular and…
javascriptanswered Caio 136 -
1
votes3
answers2718
viewsA: What is the correct way to pass the pagination data in Sponse REST?
Good afternoon Murillo, From what I have studied and implemented in some projects of REST Apis, I get the 1st option, this because the information totalPages, totalElements, size, number, are data…
-
1
votes0
answers51
viewsQ: Integration between Springsecurity and Springdata to use Spel
Good afternoon I am creating a routine where I need to use Spel to access data from the logged-in user (Authetication) directly in Springdata @Query, I followed the Springdata tutorial to perform…