新手跳坑笔记,不喜勿喷,欢迎交流学习。

项目环境

spring boot + jQuery 

核心代码:

jQuery:

jQuery get请求跳坑后感悟

Spring boot:

jQuery get请求跳坑后感悟

注释:

1、其中jQuery中data是我们get请求发送给后台的数据,后台通过RequestParam注解取出get请求中的值;

2、请求路径一定一致;

3、最后的 return “ceshi”; 其中的ceshi是我自己写的一个界面,不用在意;

相关文章: