java - Spring框架5.2.8.RELEASE不支持MultiActionController

标签 java spring spring-mvc spring-framework-beans

我在依赖项中添加了 spring 框架 5.2.8.RELEASE。加载 jar 后,当我尝试访问 MultiActionController.class 时,发现 org.springframework.web.servlet.mvc.multiaction 这个包丢失了。此版本是否已弃用此软件包?

enter image description here

最佳答案

MultiActionController在 4.3 中被标记为已弃用

Deprecated as of 4.3, in favor of annotation-driven handler methods

并在 5.x 中被删除

因此您应该将其转换为 annotated controller .

关于java - Spring框架5.2.8.RELEASE不支持MultiActionController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63243569/

相关文章:

java - Spring Security - UserRole 或 UserAuthentication

Java 编译错误 - 没有合适的构造函数

java - 使用正则表达式提取和重新格式化时间戳是唯一的方法吗?

java - Spring 数据异常处理

java - Spring序列化时如何忽略临时对象属性

java - @Scheduled 从 Controller

java - Glide : How to stop glide from loading images from cache instead load from server each time

java - 大型 Maven 项目的存储库布局

java - 在Spring配置中设置公共(public)变量

unit-testing - 单元测试 Spring MVC web-app : Could not autowire field: private javax. servlet.ServletContext