Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download others formats #2

Closed
tgmarinho opened this issue Nov 28, 2017 · 2 comments
Closed

Download others formats #2

tgmarinho opened this issue Nov 28, 2017 · 2 comments

Comments

@tgmarinho
Copy link

tgmarinho commented Nov 28, 2017

Hello @aboullaite

When I run localhost:8080/ download, only download csv, how can I set up to download excel or pdf?

When I change the order in the class: WebConfig.java:

 resolvers.add(excelViewResolver());
        resolvers.add(csvViewResolver());
        resolvers.add(pdfViewResolver());

then download excel, how can I choose the resolver ?

@aboullaite
Copy link
Owner

Hi @tgmarinho,

You should add extension to the url. for example if you want to download you've to use: localhost:8080/download.pdf.

More details here: https://aboullaite.me/spring-boot-excel-csv-and-pdf-view-example/

@tgmarinho
Copy link
Author

Thank you @aboullaite the implementations is very amazing! thanks for share! =)
Congratulations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants