Spring Web 无法运行 Student/register.html

问题描述 投票:0回答:1

问题是尝试从控制器获取register.html,但我无法弄清楚? 这是 ThymeleafApplication.java 代码

package com.cydeo.spring10thymeleaf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ThymeleafApplication {

    public static void main(String[] args) {
        SpringApplication.run(ThymeleafApplication.class, args);
    }

}

controller.java代码:

网页:

java spring-mvc thymeleaf
1个回答
0
投票

如果还没有,请尝试将

register.html
移动到资源文件夹中的文件夹
student/register.html

© www.soinside.com 2019 - 2024. All rights reserved.