摘要:
@WebServlet(urlPatterns = {"/text"}) //服务器端声明,用户接收前端发送的请求 前端: var xhr = new XMLHttpRequest(); //创建AJAX对象 xhr.open("get","/text",true); // 设置发送参数 xhr.s 阅读全文
摘要:
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 阅读全文
摘要:
新建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/ 阅读全文
摘要:
//第一步,在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 阅读全文