A in the URL is the name of the application you deployed in weblogic or tomcat. It is also called WebRoot during development. After the web application is deployed, you can access published resources or pages through http://ip:port/A/+resource name. The resource name is defined by you during development. If you don't understand this, it won't be solved in a short time. Please briefly explain the error reporting when you access it: 1 http://ip:port/A --> Return 302 Moved Temporarily [Wrong access method, no need to explain] 2 http://ip:port/A/ --> Returns to normal, maybe index.html under A application [This is defined in the web application, of course you can Customize the jump page by modifying the web.xml file configuration] 3 http://ip:port/B --> Returns 404 [Because you have not deployed the web application named B at all, it is prompting you that the resource does not exist 】
One more thing, learning does not happen overnight. It is recommended that you learn Java honestly and down-to-earth, and don’t eat fat in one bite, otherwise you will have many problems that you can’t figure out... (I recommend you a learning reference website: Geek College)
302 refers to redirection 404 You are visiting a project that does not exist and the page cannot be found 404 Direct access will access the index.jsp page by default~
A in the URL is the name of the application you deployed in weblogic or tomcat. It is also called WebRoot during development. After the web application is deployed, you can access published resources or pages through http://ip:port/A/+resource name. The resource name is defined by you during development. If you don't understand this, it won't be solved in a short time. Please briefly explain the error reporting when you access it:
1 http://ip:port/A --> Return 302 Moved Temporarily [Wrong access method, no need to explain]
2 http://ip:port/A/ --> Returns to normal, maybe index.html under A application [This is defined in the web application, of course you can Customize the jump page by modifying the web.xml file configuration]
3 http://ip:port/B --> Returns 404 [Because you have not deployed the web application named B at all, it is prompting you that the resource does not exist 】
One more thing, learning does not happen overnight. It is recommended that you learn Java honestly and down-to-earth, and don’t eat fat in one bite, otherwise you will have many problems that you can’t figure out... (I recommend you a learning reference website: Geek College)
302 refers to redirection
404 You are visiting a project that does not exist and the page cannot be found 404
Direct access will access the index.jsp page by default~