自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

转载 各种工具类

MybatisUntilpublic class MybatisUntil { private static SqlSessionFactory sf = init(); public static SqlSessionFactory init(){ String resource = "mybatis.xml"; try { InputStream inputStrea...

2017-12-04 17:45:00 111

转载 Mybatis各种查询

实体Emp private int empno; private String ename; private String job; private Integer mgr; private Date hiredate; private Double sal; private Double comm; private int deptno;dao层:public List&l...

2017-12-04 17:37:00 131

转载 struts配置

配置:拦截登陆<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"...

2017-12-04 14:16:00 99

转载 spring配置和映射文件

配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springf...

2017-12-04 14:11:00 133

转载 hibernate配置和映射文件

映射文件<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&gt...

2017-12-04 14:08:00 92

转载 mybatis配置和映射文件

配置:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE configurationPUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration><!...

2017-12-04 14:07:00 82

转载 hibernate步骤和配置

1、引入hibernate的jar包和数据库驱动包2、src添加hibernate.cfg.xml(hibernate配置文件)3、数据库编写pojopublic class Test { public static void main(String[] args) { /** * 启动hibernate(通过加载配置文件) * 如果配置文件名为默...

2017-11-23 12:01:00 87

转载 单选框,复选框和下拉框回显赋值问题

下拉菜单html:<tr> <td>是否销户</td> <td> <select name="brand.isexist"> <option value="0">--已销户--</option> <option value="1"&g...

2017-11-15 16:48:00 326

转载 struts2之使用oracle分页(10)

ToolsUtil//每页显示的记录数 public static final int NUM_PER_PAGE=5; /* * java.util.Date转java.sql.Date */ public static Date utilDateToSqlDate(java.util.Date d){ Date date = new Date(d.getTime(...

2017-11-10 15:53:00 91

转载 struts2之多文件上传与拦截器(8)

前台jsp <s:form action="uploadAction" enctype="multipart/form-data" method="post"> <label>上传文件:</label><br/> <s:file name="myfiles"></s:file> <br...

2017-11-09 14:52:00 64

转载 struts2之单文件上传(7)

前台页面jsp<!--拦截的时候用这个 <s:form action="uploadAction" enctype="multipart/form-data" method="post"> <label>上传文件:</label><br/> <s:file name="myfiles"><...

2017-11-09 11:22:00 141

转载 struts2之关联查询(5)

需要关联四个表select g.*,b.name brname,s.bid,s.sname,bi.name biname from T_GOODS gleft join T_brand b on b.id = g.brandidinner join T_smallclass s on g.sid = s.sidinner join T_bigclass bi o...

2017-11-08 16:08:00 120

转载 struts表单提交(4)和(3)相关

实体类public class Supplier { private int id; private String supplierid; private String suppliernane; private String description; private String phone; private String address; private Date star...

2017-11-08 15:47:00 70

转载 struts2模糊查询

dao层public interface DimDao { //一个条件 public List<User> userdim(User user);//两个条件且关联表格 public List<Goods> likegood(Goods goods);//有下拉菜单 public List<Bill> billnolist(B...

2017-11-08 14:43:00 381

转载 struts2之登陆拦截

针对登录拦截功能,我们需要设置拦截哪些方法和不拦截哪些方法actionaction类中,处理登录时,将用户、密码绑定到sessionActionContext ac = ActionContext.getContext(); Map<String, Object> session1 = ac.getSession(); session1.put("u", ...

2017-11-03 13:40:00 144

转载 oracle之约束-主键、非空、唯一、check、外键、默认

--首先添加主键约束alter table studentadd constraint PK_student_sno primary key(sno)--删除约束alter table studentdrop constraint PK_student_sno--not nullalter table studentmodify (sname varchar2(30) not...

2017-11-01 10:38:00 200

转载 oracle之函数-数字,日期,转换,字符串,其他

-----------------------------oracle数据库函数----------------------------------------数学函数***select abs(-1) from dual;--向上取整select ceil(2.5)from dual;select ceil(-2.4)from dual;select ceil(-2.6)from du...

2017-11-01 10:32:00 117

转载 struts2提交表单注意事项 (3)

供应商模块需求:实现供应商的列表、添加、修改、删除三个功能注意:修改时,不允许修改供应商编号 添加时,不允许显现的添加供应商编号 删除时,进行逻辑删除(根据主键将该条数据不再显示在列表) 物理删除:真正从数据库表中删除掉数据,即表中不存在这条数据了 逻辑删除:并不真正从数据库表删掉数据,而是换一种方式显示 执行逻辑删除之后,即暂时中止和某供应...

2017-11-01 09:29:00 78

转载 struts2编写表单提交简单的(2)

实体package com.oak.entity;public class User {private int id;private String username;private String password;private int sex;private int age;private double salary;private String address;priva...

2017-11-01 09:26:00 80

转载 如何退出框架

常规的退出系统无非就是两种方式,一个是点击超链接,页面跳转到登录页面,另一个就是点击页面元素,触发js事件,使当前页面跳转。1、利用超链接属性中target="_parent"。在超链接中加入target属性<a href="../login/action_logout.do" target="_parent">退出系统</a> 就可以了,他的原理相当于目标页面替...

2017-10-31 09:23:00 199

转载 jsp模糊查询

模板查询之前:查询之后:jsp的<script>: $(".inp2").click(function(){ var s=$(".inp").val(); $("tr").each(function(i,x){ if($(x).children().eq(1).text().indexOf(s)<0 && i&...

2017-10-20 09:36:00 768

转载 ajax给增删修加入非空

<span>标签加入<script type="text/javascript"> $(".inp2").click(function(){ var s=$(".inp").val(); $("tr").each(function(i,x){ if($(x).children().eq(1).text().indexOf(s)&lt...

2017-10-20 09:31:00 95

转载 AJAX增删查

数据库CREATE DATABASE crmweb;CREATE TABLE `customerstatus` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号', `customerstatus` varchar(100) DEFAULT NULL COMMENT '客户状态', `customerdescript...

2017-10-19 15:54:00 79

转载 servlet文件上传

jsp:servlet:/* * * 文件上传 */public class UploadServlet extends HttpServlet { /** * Constructor of the object. */ public UploadServlet() { super(); } @Override protected void servic...

2017-10-12 18:15:00 133

转载 jsp页面判定某个变量值的时候改变颜色

<td> <c:if test="${v.price>'15' }"> <font color="yellow">${v.price }</font> </c:if> <c:if test="${v.price<'0' }"> <font color="red">${...

2017-10-11 12:16:00 612

转载 jsp根据某一行颜色来其他行的颜色

jsp根据某一行颜色(单选框)来其他行的颜色<c:choose> <c:when test="${v.color=='黑色' }"> <td style="color:black">${v.name }</td> </c:when> <c:when test="${v.color...

2017-10-11 11:47:00 269

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除