If we need to send email with html-based content and hope we can manage it in template file instead of in Java code, how to do it?
We can use Velocity to fulfill this requirement.
Remember to update your maven dependency first:
Step1. Create velocity template
This template located in :
Step2. Create Beans configuration in spring-beans.xml
Step3. Write test code
Check the print result: