Posts by Diego Biazin • 21 points
6 posts
-
0
votes1
answer75
viewsA: How to keep the same object between requests in Spring MVC?
Every time you include an item in the order you call the inclusion service to update the order? This way your application will fall very much in performance. I suggest you control your list of items…
-
0
votes1
answer155
viewsA: Void function with Spring returning null at Angular 6
Already tried to return Responseentity ? @DeleteMapping("/{id}") @PreAuthorize("hasAuthority('ROLE_CADASTRAR_TIPO')") public ResponseEntity<Void> remover(@PathVariable Long id) {…
-
0
votes2
answers95
viewsA: Changing an entity by passing a list
Try something like: teacher.getLessons().addAll(asList(lesson1, lesson2, lesson3)); //getLessons() = List<Lessons> da classe Teacher repositoryTeacher.saveAll(); I recommend you create a DTO…
-
1
votes2
answers3102
viewsA: How to put a wait time for the code to run?
I don’t know if a timer would be the best option, maybe waiting for the user’s click would be more usual, but anyway. I believe the Handler class postDelayed method can help you:…
-
0
votes1
answer219
viewsA: File path cacerts for javax.net.ssl.trustStore does not work on . War
Without the stack trace it is difficult to give an assertive answer, but we will test a possible solution. Try adding the cacerts path to a property in the application.properties file, for example:…
-
1
votes3
answers1908
viewsA: How to upload image using Spring Boot?
I believe that it is not ideal to record the bitmap of an image in the database. Below is a code snippet where I upload an image to the Amazon server (S3), in the file name I use a predefined prefix…