我有SpringBoot应用程序,它可以在本地主机上运行。但是在我的服务器上的一些页面上部署了.war文件后,我收到了: Whitelabel Error Page
This application has no explicit mapping for /error], template might not exist or might not be accessible by any of the configured Template Resolvers 在本地主<em
我正在使用Spring,并试图了解控制器/视图部分是如何工作的,但是我在'/‘和任何其他路径上都会出现404错误。我尝试将@EnableWebMVC添加到我的主类中,但这给了我500个错误Could not resolve view with name 'index' in servlet with name 'dispatcherServletpublic String index(Model model) {
return "inde