class="java" name="code"> String path = Thread.currentThread().getContextClassLoader().getResource( "xxx.xml" ).toURI().getPath();