1

このサイトから petclinic アプリケーションをダウンロードしました: 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
4

1 に答える 1

2

Petclinic サンプルは少し古く、Tomcat に既知の問題があります。SPR -7893を参照してください。

それでもTomcatで動作させたい場合は、という名前のフォルダーを作成し、そこにフォルダーを移動する必要がありsrc/main/webapp/staticます。htmlimagesstyles

于 2012-09-10T18:22:28.110 に答える