- 博客(19)
- 收藏
- 关注
原创 乐观锁
INSERT INTO tb_wallet VALUES (null,#{userId},#{money},#{ver},NOW(),NOW()) UPDATE tb_wallet SET money=#{money},update_time=NOW(),ver=ver+1 WHERE user_id=#{userId} AND ver=#{ver} package
2017-09-22 07:48:53 317
原创 登录的anglarJS使用,简单易懂
//首先就是界面里的操作html ng-app="" lang="en" xmlns:th="http://www.thymeleaf.org">head> meta charset="UTF-8"/> title>登录title> script src="/js/angular-1.0.1.min.js">script>head>body ng-contro
2017-09-21 14:58:59 743
原创 springMVC的分页简单使用
//首先要导分页的jar包dependency> groupId>com.github.pagehelpergroupId> artifactId>pagehelperartifactId> version>4.0.0version>dependency> //然后导入分页需要的pojo类private int count;
2017-09-21 14:26:50 1787
原创 拦截器的配置文件
package com.bw.interceptor;import com.bw.pojo.User;import org.springframework.web.servlet.HandlerInterceptor;import org.springframework.web.servlet.ModelAndView;import javax.servlet.http.H
2017-08-25 08:17:55 1657
原创 AJAX_idea
JSP的添加 test function send() { var content = $("#content").val(); content = encodeURI(content); var
2017-08-23 15:00:08 1400
原创 AJAX删除
DAO层public interface ClaMapper { List getClasses();}public interface StudentMapper { void insert(Student student ); List getStudents(Student student); void delete(i
2017-07-28 10:52:18 548
原创 ssm整合导入导出
Beabpublic class Department { private int id; private String dname;public class Employee { private int id; private String name; private
2017-07-27 21:34:38 3157
原创 SSM整合手机联系人
dao层方法package com.dao;import java.util.List;import com.pojo.Person;public interface PersonMapper { public List selectPersonByUserId(Integer wid); public Person selectById(Int
2017-07-23 20:43:21 427
原创 SSH整合
import java.io.BufferedWriter;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.OutputStreamWriter;import java.io.PrintWriter;import j
2017-07-10 08:11:35 168
原创 SSH整合的程序
util包配置package com.util;import org.hibernate.SessionFactory;import org.hibernate.cfg.Configuration;public class DaoUtil { public static final SessionFactory sf = new Configuration()
2017-07-04 14:23:14 181
原创 ssm整合拦截器JSP界面
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> $(function(){
2017-06-30 08:03:09 1974
原创 ssm整合拦截器的配置
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:m
2017-06-30 07:52:51 3494
原创 SSM整合单表的mapper映射文件
Mapper的接口public interface UserMapper {public User selectone(String name);public List selectAll();public void insert(User user);public void delete(Integer id);public void update(User user);
2017-06-29 10:35:51 1510
原创 SSM整合controller控制层编码
package com.bawei.controller;import java.util.List;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.u
2017-06-28 20:51:58 5285
原创 ssm整合实现类
package com.bawei.service;import java.util.List;import com.bawei.pojo.Employee;public interface EmplService { public void insert(Employee empl); public void delete(Integer id);
2017-06-28 20:49:40 476
原创 SSM登录的JSP界面
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'login.jsp' starting pa
2017-06-28 20:47:58 4835 1
原创 ssm整合jsp的添加界面
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'insert.jsp' starti
2017-06-28 20:45:56 4348
原创 ssm整合JSP查询界面
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> $(function(){
2017-06-28 20:44:23 3147
原创 ssm连表查询Mapper动态代理
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"> select e.*,d.id d_id,d.name d_name from employee e,department d where e.did=d.id
2017-06-28 20:40:10 757
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人