项目访问路径+发送请求路径写法的相关问题

   1、js中发生ajax请求路径写法

queryUrl = 'http://localhost:8080/spc/findMemberRight.do'; 
规则为:ip+端口+controller的url 如果设置了代理的则为:ip+端口+代理(一般为模块名)+controller的url


2、浏览器直接访问webapp下的html
1、首先需要把webapp目录加入编译路径,IDEA设置webapp为编译路径方法如下:

2、然后访问路径变为 http://localhost:8080/right/rightManager.html

规则:ip+端口+html目录+html文件  (切记,不需要添加模块名称和webapp目录了!!)

3、浏览器直接访问项目的接口,或者postman访问接口

规则:ip+端口+工程名称+controller的url  

http://localhost:8080/member/spc/findMemberRight.do

原文地址:https://www.cnblogs.com/Andrew520/p/9601989.html