我使用了springboot框架,想写一个表格实现增删功能,后端写好了,也写了一个静态页面,但是前后端怎么连起来呀,有没有推荐的学习资源,详细点的,视频资料等等。新手求解啊。
11条回答 默认 最新
u010796750 2018-04-12 07:33关注在配置文件中配置,表示返回页面的前缀后缀
spring.thymeleaf.suffix=.html
spring.thymeleaf.prefix=classpath:/static/
然后把html文件放在resources/static文件夹
maven需要引入依赖
org.springframework.boot
spring-boot-starter-thymeleaf如果还是看不懂的话,这里有个Spirng Boot的视频学习资源,上面还有很多别的资源,很适合新手
https://www.imooc.com/learn/956这是关于Spring Boot如何整合各种资源的
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报