01-Spring的启动过程分析
573 2023-04-03 02:39:09
html页面如果放在resources/templates目录下,则需要走controller控制器,controller放行,允许该资源访问,该资源才能被访问到。否则就会报404错误(它不可以直接被访问)。
spring.mvc.static-path-pattern=/static/**spring.thymeleaf.servlet.content-type=text/htmlspring.thymeleaf.mode=HTMLspring.thymeleaf.cache=falsespring.thymeleaf.prefix=classpath:/templates/spring.thymeleaf.suffix=.html