• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Y-wee
博客园    首页    新随笔    联系   管理     
上一页 1 ··· 22 23 24 25 26 27 28 29 下一页
2020年10月14日
spring中BeanFactory和ApplicationContext的区别
摘要: spring中BeanFactory和ApplicationContext的区别 1、spring中工厂的类结构图 2、BeanFactory和ApplicationContext的区别 BeanFactory是Spring容器中的顶层接口,ApplicationContext是它的子接口 Bean 阅读全文
posted @ 2020-10-14 11:06 Y-wee 阅读(193) 评论(0) 推荐(0)
2020年10月13日
spring基于xml配置入门案例
摘要: spring入门案例 基于maven项目 1、准备jar包 <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframework 阅读全文
posted @ 2020-10-13 17:21 Y-wee 阅读(132) 评论(0) 推荐(0)
hibernate使用ThreadLocal管理Session
摘要: hibernate使用ThreadLocal管理Session 1、为什么要使用ThreadLocal管理Session session是线程不安全的,因此在多线程环境下,session对象不能为共享对象 把Session写成局部变量虽然可以解决线程安全问题,但是每次运行都要打开及关闭session 阅读全文
posted @ 2020-10-13 14:30 Y-wee 阅读(274) 评论(0) 推荐(0)
2020年10月12日
hibernate双向多对多映射关系的配置
摘要: hibernate双向多对多映射关系的配置 1、实体类 package com.yl.bean; import java.io.Serializable; import java.util.Set; /** * 商品实体类 */ public class Goods implements Seria 阅读全文
posted @ 2020-10-12 19:48 Y-wee 阅读(110) 评论(0) 推荐(0)
简单配置hibernate二级缓存
摘要: 简单配置hibernate二级缓存 导入缓存jar包 <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-ehcache --> <dependency> <groupId>org.hibernate</groupId> < 阅读全文
posted @ 2020-10-12 18:29 Y-wee 阅读(151) 评论(0) 推荐(0)
hibernate双向一对一映射关系的配置
摘要: hibernate双向一对一映射关系的配置 1、外键映射 1.1、实体类 package com.yl.bean; import java.io.Serializable; /** * 公民实体类 */ public class Person implements Serializable { pr 阅读全文
posted @ 2020-10-12 11:18 Y-wee 阅读(150) 评论(0) 推荐(0)
2020年10月10日
hibernate入门案例
摘要: hibernate入门案例 1、准备工作 创建数据库表(数据库表自己准备) 创建项目导入hibernate和数据库驱动jar包 本例使用的maven项目,数据库是8.0及以上(数据库驱动包根据版本调整) <!-- https://mvnrepository.com/artifact/org.hibe 阅读全文
posted @ 2020-10-10 16:07 Y-wee 阅读(138) 评论(0) 推荐(0)
mybatis入门案例
摘要: mybatis入门案例 1、准备工作 创建数据库表(数据库表自己准备) 创建项目导入mybatis和数据库驱动jar包 本例使用的maven项目,数据库是8.0及以上(数据库驱动包根据版本调整) <dependency> <groupId>org.mybatis</groupId> <artifac 阅读全文
posted @ 2020-10-10 11:05 Y-wee 阅读(137) 评论(0) 推荐(0)
2020年9月27日
jquery实现全选和全不选
摘要: jquery实现全选和全不选 <input type="checkbox" id="all" />全选<br /> <input type="checkbox" name="sub" />image1.jpg<br /> <input type="checkbox" name="sub"/>imag 阅读全文
posted @ 2020-09-27 20:09 Y-wee 阅读(114) 评论(0) 推荐(0)
2020年9月24日
location.href实现jsp页面跳转
摘要: eg:location.href="${pageContext.servletContext.contextPath}/pages/register.jsp" 阅读全文
posted @ 2020-09-24 22:54 Y-wee 阅读(811) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3