Fork me on GitHub
摘要: @WebServlet(urlPatterns = {"/text"}) //服务器端声明,用户接收前端发送的请求 前端: var xhr = new XMLHttpRequest(); //创建AJAX对象 xhr.open("get","/text",true); // 设置发送参数 xhr.s 阅读全文
posted @ 2024-03-25 21:11 一名狗书匠& 阅读(1) 评论(0) 推荐(0) 编辑
摘要: web.xml 配置文件 最新依赖 <?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchem 阅读全文
posted @ 2024-03-25 21:10 一名狗书匠& 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 新建spring-dao.xml文件 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/ 阅读全文
posted @ 2024-03-25 21:09 一名狗书匠& 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //第一步,在web.xml文件中注册<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文
posted @ 2024-03-25 21:08 一名狗书匠& 阅读(1) 评论(0) 推荐(0) 编辑

asd