Load Velocity Template Web Application

Load Velocity Template Web Application

If you are using Apache velocity template in your web application and trying to load template file from class path please see below. I will create small project to show you folder structure then with code to load template:

  • Sample maven project structure:

Load Velocity Template Web Application

  • Code to load properties file:

  • You will also need to include velocity jar in your class path because this project is maven based so I have added below dependency:

  • Output:

Load Velocity Template Web Application

  • For more information on Apache velocity please see its official site here

download  Download Project:  SpringMVCRESTFulService

2 thoughts on “Load Velocity Template Web Application

  1. This is a great tutorial for real, but the downloaded “.rar” files are corrupted when I try to unzip them.
    Please update the download files.
    Thinks

Leave a Reply

Your email address will not be published. Required fields are marked *