spingboot访问resources下的html页面报404

我在rescources下和rescources下新建templates文件夹下都放了html文件,访问都是404 ,已经引入了

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

求解答

我是学security自定义的登录页面,跳转登录页时404 ,我发现直接访问也是404
图片说明图片说明

图片说明

后续:
我之前想的直接访问页面,还是不行,现在先写个接口跳到页面上了,但是之前的直接访问还是想不通咋回事:有明白的解释下

放在resources/static下

要在配置文件配置访问路径,比如
spring:
mvc:
static-path-pattern: /statics/**
resources:
static-locations: classpath:/webApp/statics/
#freemarker 配置
freemarker:
template-loader-path: classpath:/webApp/template/
cache: false
charset: UTF-8
check-template-location: true
content-type: text/html
expose-request-attributes: true
expose-session-attributes: true
request-context-attribute: request
suffix: '.ftl'
settings:
template_update_delay: 0

可以看看项目里面有没有编译过来,在target文件夹下面看看,新建的文件有没有编译进去,可以根据里面编译的文件路径去访问。然后在浏览器上面检测一下network里面看看访问路径合适吗,基本上这么排查就能解决访问不到的问题。

权限框架拦截的是请求,页面跳转应该由接口控制,放行页面跳转的接口的请求,放行自定义登陆页,我之前也遇到一个朋友和你一样不写接口的,他也是访问不到