Dá o erro: The type List is not generic; it cannot be parameterized with arguments
package br.com.alura.forum.controller;
import java.awt.List;
import java.util.Arrays;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import br.com.alura.forum.model.Curso;
import br.com.alura.forum.model.Topico;
@Controller
public class TopicosController {
@RequestMapping("/topicos")
@ResponseBody
public List<Topico> lista(){
Topico topico = new Topico("Duvida","Duvida com Spring",new Curso("Spring","Programacao"));
return Arrays.asList(topico, topico, topico);
}
}