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.
我正在尝试从方法所在的源文件中读取。前任。方法readFromSrcFile()需要从自己的源文件中读取,可以是foobar.java. 我如何在foobar.java不硬编码的情况下获得它的路径?
readFromSrcFile()
foobar.java