![]() |
1
1
我只是对SpringBoot 2.1.3.RELEASE有这个问题,它比anwser早了很长一段时间,但也许可以帮助其他人。 解决方案就是删除@EnableWebMvc。
如果不启用WebMVC,则WebMvcAutoConfiguration为take,它具有静态配置:
也许这有其他影响,但我只是开始我的项目,我无法核实。 |
![]() |
Mayur · maven项目中找不到文件异常找不到xml文件 2 年前 |
![]() |
Mayur · 我试图导入(import org.springframework.context.ApplicationContext),但它给了我错误org。Sprigframew无法解决 2 年前 |
![]() |
Pasha · 如何在@RequestBody中传递2个对象? 6 年前 |
![]() |
Halil · Spring MVC-有条件返回html内容或模板内容 6 年前 |
![]() |
M.K · 实现easy REST服务的问题-Spring MVC 6 年前 |