2016-12-29 77 views
1

我有需要使用Spring引導遷移的應用程序。在我的HTML文件中,我有以下代碼不被thymeleaf支持,那麼有什麼辦法可以使用這個相同的html並遷移到spring啓動?我們可以在Spring引導中使用groovy模板

#{if redirectCount && redirectUrl} 
     <meta http-equiv="refresh" content="${redirectCount}; url=${redirectUrl}" /> 
     #{/if} 

<span class="copyright">&{'copyright'}</span> 

#{extends 'main.html' /} 
#{include '_header.html'/} 
+1

https://spring.io/blog/2014/05/28/using-the-innovative-groovy-template-engine-in-spring-boot –

+0

答案不清楚給我。在我目前的應用程序中,我有所有使用上面附加代碼的html文件..那麼,如何在不對UI進行大量代碼更改的情況下通過spring啓動遷移這些代碼是最好的方式。 – Swpno

+0

任何人都可以請一個合適的答案幫忙? – Swpno

回答

相關問題