Spring is relative to the bin, or Web-inf, when reading the configuration file;"Applicationcontext.xml" is to find bin or Web-inf and sub-folder files;"/res/applicationcontext.xml" is the file that must be bin or the Res folder under the Web-inf
1. Understanding of Basic Concepts
Absolute path: Absolute path is the real path of the file or directory on your home page on your hard disk, (URL and physical path) such as:C:\xyz\test.txt represents the absolute path of the Test.txt file. Http://
(1), Request.getrealpath ("/");//not recommended to get the root path of the project(2), Request.getrealpath (Request.getrequesturi ());//Get the path of the JSP, this method is more useful, can be used directly in the servlet and JSP(3),
String path = Struts2util.getservletcontext (). Getrealpath ("/");One, method one(1), Request.getrealpath ("/");//not recommended to get the root path of the project(2), Request.getrealpath (Request.getrequesturi ());//Get the path of the JSP, this
1. Understanding of basic concepts
Absolute path: Absolute path is the true path of the file or directory on your home page on your hard disk, (URL and physical path) For example: C:/xyz/est.txt represents the absolute path of the Test.txt file.
Relative path in Java development, complete summary of absolute pathsBlog Category:
Java synthesis
JAVAJSP Application Server servlet Network application1. Understanding of Basic conceptsAbsolute path: The absolute path is the real
1. Understanding of Basic Concepts
Absolute path: Absolute path is the real path of the file or directory on your home page on your hard disk, (URL and physical path) such as:
The c:xyz est.txt represents the absolute path of the Test.txt file.
1. understanding of basic conceptsAbsolute path: the absolute path is the real path of the file or directory on your home page on the hard disk (URL and physical path), for example:C: XYZ test.txt represents the absolute path of the test.txt file.
1. understanding of basic concepts
Absolute path: the absolute path is the real path of the file or directory on your home page on the hard disk (URL and physical path), for example:C: XYZ est.txt represents the absolute path of the test.txt file.
First, forwarding:
1. Purpose of forwarding
is in order to achieve multiple page interaction in the process of request data sharing, that is, carry data forwarding, calculate a request, address bar address is not changed, is the server to do
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.