jquery AJAX在springboot项目中的使用

项目代码:https://github.com/guocanzhen/jQueryAjaxJavaWeb

数据库:

 注:

1、在使用Http的URL访问html页面时,需要导入themeleaf

2、ajax使用需导入jQuery脚本

3、ajax中success的function(result),result为后台定义的数据类型对象,前端处理时需要根据该数据类型处理。

具体的使用请下载项目,创建数据库表进行学习。

猜你喜欢

转载自www.cnblogs.com/canzhen/p/java_springbootajax.html