我有一个要求,我需要从网站上下载PDF.PDF需要在代码中生成,我认为这将是freemarker和像iText这样的PDF生成框架的组合.有更好的方法吗?
但是,我的主要问题是如何允许用户通过Spring Controller下载文件?
java spring controller file download
我需要读取一个隐藏在我的包结构中的属性文件com.al.common.email.templates.
com.al.common.email.templates
我已经尝试了一切,我无法弄明白.
最后,我的代码将在servlet容器中运行,但我不想依赖于容器.我编写JUnit测试用例,它需要兼顾两者.
java properties-file
java ×2
controller ×1
download ×1
file ×1
properties-file ×1
spring ×1