后端新手部署项目 被自己坑哭了。
访问网页都知道加一个 打包的war 包名字 ,访问接口的时候没有加。
http://xxx.xxx.xxx/项目名/页面路径
页面基地址http://xxx.xxx.xxx/shop/
例:http://xxx.xxx.xxx/shop/index.jsp
接口基地址:http://xxx.xxx.xxx/shop
例:http://xxx.xxx.xxx/shop/goods/getAllGoods
后端新手部署项目 被自己坑哭了。
访问网页都知道加一个 打包的war 包名字 ,访问接口的时候没有加。
http://xxx.xxx.xxx/项目名/页面路径
页面基地址http://xxx.xxx.xxx/shop/
例:http://xxx.xxx.xxx/shop/index.jsp
接口基地址:http://xxx.xxx.xxx/shop
例:http://xxx.xxx.xxx/shop/goods/getAllGoods