springboot 集成 velocity

@RequestMapping(value = "/findAddrById")
public String findAddrById() throws Exception{
String path="test";
Map model = new HashMap();

model.put("message", "这是测试的内容。。。");

model.put("toUserName", "张三");

model.put("fromUserName", "老许");

return path;
}

test.vm
<!DOCTYPE html>



welcome to spring boot

亲爱的${toUserName},你好!

 ${message}请不要告诉其他人,切记!

祝:开心!

${fromUserName}


配置:

VELOCITY TEMPLATES (VelocityAutoConfiguration)

spring.velocity.charset=UTF-8
spring.velocity.properties.input.encoding=UTF-8
spring.velocity.properties.output.encoding=UTF-8
spring.velocity.resource-loader-path=/WEB-INF/velocity
spring.velocity.suffix=.html
spring.velocity.toolbox-config-location=/WEB-INF/velocity/toolbox.xml

问题是,无法返回到页面

放到modeview 对象中,可以在页面获取