springboot_web开发

1、导入静态资源

第一步:导入webjars依赖

 

 

 

 

 

 

 

2、定制首页

 

将index.html放到public目录写,访问localhost:8080即可访问到index.html

 

 

 

 

 

3、引入themlef模板

 

第一步:导入依赖

 

 

 

 

 

模板资源必须写在template模板中,而且必须是html文件

 说白了就是加一个th标签,让html文件有jsp文件的功能,不使用jsp而已。

 

posted @ 2021-03-13 13:40  11111ghm  阅读(78)  评论(0编辑  收藏  举报