获得了一个简单的项目设置,我的目标是加载一个jsp文件:
我用RequestMapping作为jsp文件的控制器。
package com.example.registrationFrom.control;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class Control {
@RequestMapping("/")
public String ho