Não consigo rodar o topicos, me retorna erro 500:
"There was an unexpected error (type=Internal Server Error, status=500)."
package br.com.alura.forum.controller;
import java.util.Arrays; import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController;
import br.com.alura.forum.controller.dto.TopicoDto; import br.com.alura.forum.modelo.Curso; import br.com.alura.forum.modelo.Topico;
@RestController public class TopicosController {
@RequestMapping("/topicos")
public List<TopicoDto> List(){
Topico topico = new Topico("Dúvida", "Dúvida com spring", new Curso("Spring", "Programacão"));
return TopicoDto.converter(Arrays.asList(topico, topico, topico));
}
}