diff --git a/src/main/java/com/view/csv/ClienteCsvView.java b/src/main/java/com/view/csv/ClienteCsvView.java index 2ef9c51..ea6a56c 100644 --- a/src/main/java/com/view/csv/ClienteCsvView.java +++ b/src/main/java/com/view/csv/ClienteCsvView.java @@ -13,7 +13,7 @@ import java.util.Map; -@Component("listar") +@Component("listar.csv") public class ClienteCsvView extends AbstractView { public ClienteCsvView() { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 68d7511..0e3a684 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -56,6 +56,7 @@ spring.servlet.multipart.max-request-size=10MB spring.mvc.contentnegotiation.favor-parameter=true spring.mvc.contentnegotiation.media-types.pdf=application/pdf spring.mvc.contentnegotiation.media-types.xlsx=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet +spring.mvc.contentnegotiation.media-types.csv=text/csv