How to get the system path in Java!

xiaoxiao2021-03-06  77

In the Application: System.getProperty ( "user.dir") in a Servlet: ServletContext servletContext = config.getServletContext (); String rootPath = servletContext.getRealPath ( "/"); in the jsp: application.getRealPath ( "")

转载请注明原文地址:https://www.9cbs.com/read-93857.html

New Post(0)