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.
我想使用 java 代码清理 jboss 7 tmp 文件夹
有没有办法做到这一点?它应该使用JMX吗?请帮助我,我想要这个代码,谢谢
我想你需要得到这样的文件结构并且必须clean/delete在那个文件夹中的内部文件temp。
clean/delete
temp
JBoss AS 7:如何清理 tmp?
但请阅读那里的建议。
这将为您提供可以在 java 程序中使用的临时目录路径,创建文件实例并执行操作。
System.getProperty("jboss.server.temp.dir");