SpringBoot2.7的,模板Engine是这个:
@Resource
private SpringTemplateEngine templateManager;
String emailContent = templateManager.process("emailTemplate",context);
@Resource
private SpringTemplateEngine templateManager;
String emailContent = templateManager.process("emailTemplate",context);