Sringboot-3-web(未完)
静态资源
源码
静态资源的处理方式
webjars localhost:8080/webjars/
public,static,/**,resources localhost:8080/
优先级
resources>static(默认)>public
首页相关
源码
将index.html放在静态资源路径下
模板引擎thymeleaf
导包
org.thymeleaf
thymeleaf-spring5
org.thymeleaf.extras
thymeleaf-extras-java8time
编写html,放在templates包下
编写controller调用
调用成功
原文:https://www.cnblogs.com/keacua/p/15227378.html