我有Thymeleaf的Spring。当我在IDEA中调用update时,资源和模板不会被重新加载(它不需要重新加载)。然后,我可以在浏览器中疯狂地按下ctrl+f5,更改是不存在的。所有内容都配置在一个Java类中,如下所示:public class MvcConfig extends WebMvcConfigurerAdapter
我正在使用Spring,并试图了解控制器/视图部分是如何工作的,但是我在'/‘和任何其他路径上都会出现404错误。我尝试将@EnableWebMVC添加到我的主类中,但这给了我500个错误Could not resolve view with name 'index' in servlet with name 'dispatcherServlet/resources/templates/index.html,因为我对Spring