Is there a way to make Spring Thymeleaf process a string template?

后端 未结 4 1601
-上瘾入骨i
-上瘾入骨i 2020-12-14 11:00

I would like to write something like :

    @Autowired
    private SpringTemplateEngine engine;
....
  // Thymeleaf Context
  WebContext thymeleafContext = ne         


        
4条回答
  •  春和景丽
    2020-12-14 11:20

    You can implement your own TemplateResolver and IResourceResolver to work with String.

提交回复
热议问题