這個不是類找不到的問題,而是你在Myeclipse 配置 Tomcat 啓動方式爲 Debug 模式
所以你修改啓動模式 爲 Run 模式
方法:
點擊 Myeclipse -> tomcat ->launch ->去勾選Run mode 就可以了