我刚刚从这个站点下载了宠物诊所应用程序:https ://src.springframework.org/svn/spring-samples/ 。
我在 Eclipse 中导入它,服务器是 Tomcat 7,应用程序正在运行,但静态数据,如图像和脚本不是:
Failed to load resource: the server responded with a status of 404 (Not Found) petclinic/static/styles/petclinic.css
Failed to load resource: the server responded with a status of 404 (Not Found) /petclinic/static/images/pets.png
Failed to load resource: the server responded with a status of 404 (Not Found) /petclinic/static/images/springsource-logo.png