springboot下面thymeleaf和freemarker兩種共存,並且設置thymeleaf的優先級高於freemarker

1、自己搭建了一個springboot 的小項目,同時用到了thymeleaf和freemarker 兩種視圖。 默認情況下,freemarker視圖優先級會高於thymeleaf 。  所有生成視圖時會優先生成 freemarker的視圖 然後想着是不是可以在配置文件裏面修改order,但是配置貌似無效,視圖解析器加載後都成了這個默認值   下圖中的spring.thymeleaf.templa
相關文章
相關標籤/搜索