當前位置:
                    首頁 >
                            前端技术
>                            javascript
>内容正文                
                        
                    javascript
第七篇:Spring Boot 整合_Thymeleaf 入门试炼 QuickStart
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                第七篇:Spring Boot 整合_Thymeleaf  入门试炼 QuickStart
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                - 1.1 添加依賴
- 1.2 創建存放視圖層的目錄
thymeleaf的基本使用:
- 2.1 thymeleaf的特點:
- thymeleaf是通過它特定的語法對html的標記做渲染。
- 2.2 編寫ThymeleafController 用來跳轉頁面
- 在src/main/resources/路徑下創建templates目錄,并添加index.html頁面文件
- 2.3 瀏覽器訪問:http://localhost:8080/showThymeleaf
本文源碼下載:
github地址:
 https://github.com/gb-heima/Spring-Boot-Actual-Combat/tree/master/parent/spring-boot-chapter-7
總結
以上是生活随笔為你收集整理的第七篇:Spring Boot 整合_Thymeleaf 入门试炼 QuickStart的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 实战04_redis-cluster集群
- 下一篇: MyBatisPlus_查询篇_入门试炼
