Não, eu rodei o teu SQL no MySQL, até agora estava funcionando normalmente.
Acredito que ele está lançando a exception do método autenticar.
@RestController
@RequestMapping("/auth")
public class AutenticacaoController {
@Autowired
private AuthenticationManager authManager;
@Autowired
private TokenService tokenService;
@PostMapping
public ResponseEntity<TokenDto> autenticar(@RequestBody @Valid LoginForm form){
UsernamePasswordAuthenticationToken dadosLogin = form.converter();
try {
Authentication authentication = this.authManager.authenticate(dadosLogin);
String token = this.tokenService.gerarToken(authentication);
return ResponseEntity.ok(new TokenDto(token, "Bearer"));
}catch (AuthenticationException e) {
return ResponseEntity.badRequest().build();
}
}
// application-properties
spring.datasource.url=jdbc:mysql://localhost/alura_forum?useTimezone=true&serverTimezone=UTC
spring.datasource.username=raphael
spring.datasource.password=167349
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.initialization-mode=always
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
forum.jwt.secret=askj/*cApLv187%@$1008/*{}?01dAºªº[aSf+=!=7d²³4A1v4E3v()98~S/-S8cA++0-
forum.jwt.expiration=86400000