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.
我正在使用 jboss,我正在努力在 properties-service.xml 中设置当前目录路径,我想在 log4j jdbc 适配器中调用它以获取 URL
在 properties-service.xml 中设置它
CURRDIR=/home/malika
然后打电话
System.out.println(System.getProperty("CURRDIR"));