Java gets the file path under the resource

InputStream certStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("apiclient_cert.p12");

insert image description here

Guess you like

Origin blog.csdn.net/qq_37741426/article/details/130882729