springBoot access pit encountered html page

idal springBoot access pit encountered html page

Saying only that the process

Configuring thymeleaf template engine ---> Create templates package under the resources directory, create a html

In the usercontroller

Html is the content returned

static is css, js files, added in application.properties

spring.mvc.static-path-pattern=/static/**
(必须)

You can refer css, js files

 

Guess you like

Origin www.cnblogs.com/zxqflying/p/11227404.html