今天在公司开发遇到的问题,struts2+spring+mybaits框架的项目。访问不到对应的Action,错误截图如下:

    There is no Action mapped for namespace / and action ..........

【解决方案】 “Could not find action or result”(Struts2命名冲突)


反复查看相关配置及注解(我司采用注解开发),都没有问题。

最后发现居然是@Action(value="***")的value冲突了

改个value吧~

如果采用配置文件,那应该是<Action name="***">的name属性

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-12-21
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
相关资源
相似解决方案