Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java Bean を使用した Java Web サービス アプリケーションがあります。WEB-INF ディレクトリ内のファイルへのフル パスを特定する方法を教えてください。
なぜこれが必要なのですか?これを行う 1 つの方法は、jsp/サーブレットからgetServletContext().getResourceAsStream("web-app/WEB-INF/...") .wsdl ファイルをクライアントで使用しようとしている場合は、物理アドレスではなくサーバーの uri を指定することをお勧めします。
getServletContext().getResourceAsStream("web-app/WEB-INF/...")