Process HTML file using Thymeleaf in Web based Scopes of Spring and store the processed template as String

后端 未结 5 1471
无人共我
无人共我 2021-01-02 14:21

I am trying to render an HTML file using thymeleaf and keep the resultant HTML content in a String variable in web-based scopes of Spring so that i can use it l

5条回答
  •  -上瘾入骨i
    2021-01-02 14:52

    In my case, my html template was not in right directory. Changed that to "src/main/resources/abc.html" and this fixed my error:

    java.lang.ClassNotFoundException: ognl.PropertyAccessor
    

提交回复
热议问题