自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 vue----Mixins

官网地址: https://v3.cn.vuejs.org/guide/mixins.html#%E5%9F%BA%E7%A1%80 引用: const myMixin = { created() { this.hello() }, methods: { hello() { console.log('hello from mixin!') } } } //引用mixins const app = Vue.createApp({ mixins: [myM

2021-08-23 14:50:56 140

原创 基于Hibernate实现学生信息管理(CRUD)

这里写自定义目录标题一、目录结构二、增删改查1.增加2.删除3.修改4.查询 一、目录结构 二、增删改查 1.增加 public void testAdd() { UserDao userdao = null; User user = null; try { userdao = new UserDaoImpl(); Class c=new Class(); c.setName("软件18-7"); User u=new User(); u.se

2021-06-15 08:49:26 342 1

原创 Hibernate 实现分页查询

public void QueryByPage(int pageSize) { SessionFactory sf = null; Session session = null; Transaction ts = null; try { sf = HibernateUtil.getSessionFactory();// SessionFactory单态模式 session = sf.getCurrentSession(); // 保证每个读写线程有唯一的session实例

2021-06-06 12:09:03 146 2

原创 重写equals()和hashCode()方法

文章目录User.java中重写equals、hashCode方法equals()hashCode() User.java中重写equals、hashCode方法 equals() public boolean equals(Object other) { if (this == other) return true; if (!(other instanceof User)) return false; final User u =

2021-05-29 20:10:03 115

原创 Hibernate-Query 保存和查询

文章目录一、保存二、查询 一、保存 public void testSavaUser() { Configuration cfg = null; SessionFactory sf = null; Session session = null; Transaction ts = null; User u = new User(); u.setName("郭郭"); u.setGender("女"); u.setAge(21); u.setBirthday(Date.va

2021-05-14 18:40:33 185

原创 ORM框架入门----使用Hibernate实现用户添加

准备工作: 准备1:导入Hibernate库(jar包) 准备2:添加配置文件 – hibernate.cfg.xml (放在src下) 具体配置内容如下: <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property> <pro

2021-05-09 22:39:48 122

原创 ns3实验

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; ...

2020-07-12 16:43:22 558

空空如也

空空如也

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

TA关注的人

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