web后台管理系统
环境:springboot+idea+ibeetl(模版引擎)+mybatis plus(包含在kernel-core包中)+mysql。。。
开始访问跳转到登录页面:
链接:http://127.0.0.1:8084/login
控制层接口代码:
@RestController
public class LoginController extends BaseController {
@Autowired
private UserService userService;
/**
* 跳转到登录页面
*
* @author fengshuonan
* @Date 2018/12/23 5:41 PM
*/
//@GetMapping(value = "/login")
@RequestMapping(value = "/login",method = RequestMethod.GET)
public String login() {
if (ShiroKit.isAuthenticated() || ShiroKit.getUser() != null) {
return REDIRECT + "/";
} else {
return "/login.html";
}
}
}
出现的问题是它没有跳到login.html页面,而是返回字符串“login.html”