velocity输出csv的一种做法

  使用spring mvc + velocity做项目时,输出csv文件做法是在controller自行调用httpResponse输出。 如果希望通过velocity输出csv内容,以下提供一种实现方式     1.新增ToCSVView,继承自VelocityView,重写rander方法,内容为设置http header与content type public class ToCSVVie
相关文章
相关标签/搜索