RestController类注解以后还需要跳页面

@RestController
public class LoginController {

    @GetMapping("/authentication/require")
    public ModelAndView require() {
        return new ModelAndView("ftl/login");
    }
}

你可能感兴趣的:(spring,java,springboot,springmvc)