Posts by Rhadamez Gindri Hercilio • 203 points
11 posts
-
0
votes1
answer67
viewsA: How to redirect request when @Preauthorize returns false
Think if it is possible to do something like this in your controller: @RequestMapping(value = {"/login", "/"}) public String login(@AuthenticationPrincipal User user){ //se usuario for true…
-
2
votes2
answers88
viewsA: Distribute my app via email
You should email the . APK extension file, as soon as your client opens it on android, it will install. You may need to change your android settings, allowing you to install unknown apps.
-
0
votes2
answers295
viewsA: Error in Spring: console Delete request points out that the method is not supported
Opa, In your ajax, change from: url: url, method: "DELETE", To: url: url, type: 'DELETE', contentType : 'application/json And in the controller, add: @DeleteMapping("/{codigo}", consumes = {…
-
0
votes1
answer219
viewsA: tenant application for multiple users
Simplest possible answer: 1 - single schema: if you have many tenants (clients), thousands etc, this option is best for administration reasons as it would not be very feasible to manage thousands of…
-
0
votes2
answers116
viewsA: API method searches for information but does not appear in front-end
As verified, the problem was in the get method within the Permissions class, where the entity name was not mapped for display.
-
0
votes2
answers398
viewsA: Images sent as an attachment in e-mail with Thymeleaf
Solution: In java code, it was missing to inform the image type in the same variable: helper.addInline("logo", new ClassPathResource("static/images/email/topo_email.png"), "image/png");…
-
0
votes2
answers398
viewsQ: Images sent as an attachment in e-mail with Thymeleaf
Hello, I’m sending a dynamic email template using Thymeleaf. The email is displayed correctly with the images, however, the images are also being attached in the body of the email, which should not…
-
0
votes2
answers117
viewsA: Create a Download according to element id
Oops, here’s my solution: public static final Path uploadingdir = "caminho do arquivo"; @GetMapping("/{nome:.*}") public void downloadPDFResource(HttpServletRequest request, HttpServletResponse…
-
3
votes2
answers140
viewsA: Is Array a C pointer?
Variables that are pointers have an asterisk in their declaration. Then the array will only be pointer if it is with that asterisk. Samples: Pointedly: int *x; char *array[]; float *peso; Hands-off:…
-
2
votes1
answer144
viewsA: Total records per day in the last 30 days
Opa, check if this SQL works: SELECT ID, DAY( created_at ) AS DIA, SUM( 1 ) AS HORAS FROM registration WHERE created_at > DATE_SUB(NOW(), INTERVAL 1 MONTH) GROUP BY DAY( created_at ) ORDER BY…
-
0
votes2
answers156
viewsA: Calling an internal class method from outside
In class 'A', create the instance: public static A a; Now in your B class, call: A.a.getSomething(); I didn’t test if it works, but it should work!…