Posts by Melchior Felix • 26 points
4 posts
-
0
votes2
answers223
viewsA: Spring MVC application does not redirect to page after login
Authentication auth = SecurityContextHolder.getContext().getAuthentication(); Usuario usuario = (Usuario)auth.getPrincipal(); int usuarioId = usuario.getId(); It should work,not forget to mark as…
-
0
votes2
answers223
viewsA: Spring MVC application does not redirect to page after login
In the Securityconfig class, after . loginPage("/enter"), you will put: .defaultSuccessUrl("/listar", true)
-
1
votes2
answers322
viewsA: Date problem in spring boot + mysql
Hello, put this on your springApplication: @PostConstruct public void init(){ // Setting Spring Boot SetTimeZone TimeZone.setDefault(TimeZone.getTimeZone("UTC")); }…
-
0
votes1
answer113
viewsA: Java - Spring 404 - not found
failed to put the @Controller annotation on top of public class Prevcontroller.