springboot + mail +thymeleaf

最近项目中需要使用到发送邮件功能不高兴使用freemarker了,就采用thymeleaf简单处理

直接贴出代码了

gradle 中的配置文件

别忘了在application.properties 中配置thymleaf 信息

使用代码



在贴出html模板中的代码
接受的数据格式是
List<Map<String,Object>>

猜你喜欢

转载自blog.csdn.net/zmlm88/article/details/84562266