registry.addRedirectViewController("/student", "/student/index.html"); 无效
文档: registry.addRedirectViewController?..
链接:http://note.youdao.com/noteshare?id=6ef422ee5804a2fcbd74a13fd3e66ff6&sub=05EE4750EA034FDFAF724B06503ED1F1
该回答引用GPTᴼᴾᴱᴺᴬᴵ
registry.addRedirectViewController("/student", "/student/index.html"); 这行代码应该是Spring MVC框架的代码。它的作用是将请求路径"/student"重定向到"/student/index.html"页面。
如果这行代码无效,那么有可能是以下几个原因:
需要更具体的信息才能判断出具体原因,您可以提供更多的信息,我们可以一起来查找问题的原因。