摘要: 绑定:、 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include 阅读全文
posted @ 2019-12-11 15:47 呆code 阅读(173) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ type:"post", traditional: true, data:{arr:arr}, url:"${pageContext.request.contextPath}/customer/deleteById", dataType:"json", success: funct 阅读全文
posted @ 2019-12-11 15:46 呆code 阅读(951) 评论(0) 推荐(0) 编辑
摘要: timeout : 1000 给ajax配置如上属性 $.ajax({ type:"post", url:"pro/savePro", timeout : 1000, data:$("#forms").serialize(), success:function (msg) { window.loca 阅读全文
posted @ 2019-12-11 15:43 呆code 阅读(2182) 评论(0) 推荐(0) 编辑
摘要: 应该先将表单提交关闭,在action处添加javascript: 阅读全文
posted @ 2019-12-11 15:42 呆code 阅读(382) 评论(0) 推荐(0) 编辑
摘要: <%-- param.id是取从另一个页面传过来的值 ,id 字符串 都可以--%> <input type="hidden" name="pid"value="${param.id}"> ar str=window.location.search.substr(1).split("&"); win 阅读全文
posted @ 2019-12-11 15:39 呆code 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 导入导出excel 导入导出需要的jar包 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.16</version> </dependency> <dependency> < 阅读全文
posted @ 2019-12-11 15:32 呆code 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <welcome-file-list> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这是在web.xml里面配置的 。 阅读全文
posted @ 2019-12-11 15:24 呆code 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.d 阅读全文
posted @ 2019-12-11 15:20 呆code 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Java第三阶段复习: 1. Spring 1. IOC: 定义:Inverse Of Controller:反转控制,将bean对象的创建和对象之间的关联关系的维护由原来我们自己创建、自己维护反转给了spring 的容器来创建bean对象及维护关联关系 解决:解决了上层建筑严重依赖下层建筑的问题, 阅读全文
posted @ 2019-12-10 14:20 呆code 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 一、一对多 :外键创在多的一方 ,先创一的一方,多的一方的外键要依赖一的一方的主键 。 多对一 : 本质也一样 反过来即可 。 create table dept( id int PRIMARY KEY AUTO_INCREMENT COMMENT '部门id', dept_name VARCHAR 阅读全文
posted @ 2019-12-07 10:55 呆code 阅读(1551) 评论(0) 推荐(0) 编辑