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.
webapp のサブディレクトリ内のファイルに xml を書き出そうとしています。この場合、ディレクトリは次のとおりです。
C:\Tapestry\xyz\src\main\webapp\directory1\
Java クラスの 1 つから C:\Tapestry\xyz\src\main\webapp\ であるファイル パスの一部を取得するにはどうすればよいですか? 移植性がなくなるため、ハードコーディングしたくありません。
ありがとう、