初学Struts时遇到的问题

Caused by: Action class [enjoyshop.HelloWorldAction] not found 解决方法

问题描述

使用Struts开发web应用,配置好struts.xml文件后启动Tomcat服务器,过程中会报“Caused by: Action class [enjoyshop.HelloWorldAction] not found”错误,就是说你的这个类找不到,搞了好久…

错误排查

  • 查看struts.xml文件,是否配置错误(主要是看类名有没有写错)
  • 如果配置没有问题,那就清理一下eclipse缓存

附图

struts.xml文件
struts.xml
清理缓存
eclipse>project>clean
在这里插入图片描述
在这里插入图片描述
我的问题就是在清理完缓存之后就解决了。欢迎私聊QQ:1772677516

猜你喜欢

转载自blog.csdn.net/qq1773099690/article/details/89208865