Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Como chamar a requisição no /acessos

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Sep 19 00:02:55 BRT 2022 There was an unexpected error (type=Internal Server Error, status=500). Type definition error: [simple type, class br.com.alura.mvc.mudi.inteceptor.InterceptadorDeAcessos$Acesso]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class br.com.alura.mvc.mudi.inteceptor.InterceptadorDeAcessos$Acesso and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0]) org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class br.com.alura.mvc.mudi.inteceptor.InterceptadorDeAcessos$Acesso]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class br.com.alura.mvc.mudi.inteceptor.InterceptadorDeAcessos$Acesso and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0])

eu quero entender o que pode ser essa excessão do databind

1 resposta
solução!

Resolvido adicionar o métodos de acessos na classe criada dentro da interface InteceptadorDeAcessos