SSH开发
报错:Unable to instantiate Action, controller.MsgController, defined for'show' in namespace '/'null

解决方案:
spring里的id属性值要对应struts里class属性值。


原因:jdk版本和spring的版本不兼容。一般是spring版本太低,jdk版本过高。
本文解决了一个关于SSH开发中出现的“UnabletoinstantiateAction”错误。问题的原因在于spring的id属性值与struts的class属性值不匹配,通常是因为spring版本过低而jdk版本过高导致的版本不兼容。
SSH开发
报错:Unable to instantiate Action, controller.MsgController, defined for'show' in namespace '/'null

解决方案:
spring里的id属性值要对应struts里class属性值。


原因:jdk版本和spring的版本不兼容。一般是spring版本太低,jdk版本过高。
3万+
2485
4389
161

被折叠的 条评论
为什么被折叠?
