笔记
文章平均质量分 69
yuyurj
haohao
展开
-
redis的一些数据结构
redis的一些底层数据结构原创 2022-09-08 20:45:38 · 302 阅读 · 1 评论 -
jvm流程
出自咕泡学院原创 2020-02-24 23:28:43 · 140 阅读 · 0 评论 -
GridView小笔记
1、若使用SimpleAdapter,则 需要有map作为子项的lists,即List > listItems=new ArrayList>();并将Map的子项放入listItems其中子项创建就是Map listItem=new HashMap();对象有了之后就是适配器建立,new SimpleAdapter(this,listItems,R.layout.子项布局,new St原创 2016-08-01 09:00:52 · 213 阅读 · 0 评论 -
Android存储的使用笔记-注意点
1.其他应用的SharedPreferences 创建该程序对应的Context,具体创建方法是: Context wantApplication=createPackageContext(“该程序对应 的包名”,模式);如 useCount=createPackageContext(“com.example.adminstrator”,Context.CONTEXT_INGORE_SECUR原创 2016-08-04 08:43:40 · 217 阅读 · 0 评论 -
Http连接请求
一、HttpURLConnection 首先是URL建立一个对象, URL url=new URL(“http://www.baidu.com”); 然后就是获得 HttpURLConnection connection=url.openConnection(); 对connection进行设置即可以有 connection.setRequestMethod()等,参数有GET和POST原创 2016-08-06 13:45:23 · 423 阅读 · 0 评论 -
Hibernate基础笔记
1.搭建时候,需要添加jar包,hibernate.cfg.xml文件 以及每个实体类对应table的xx.class->xx.hbm.xml 2.旧版配置执行代码//配置 Configuration config = new Configuration().configure();//注册服务 ServiceRegistry serviceRegistry = new Stan原创 2018-01-03 20:10:32 · 221 阅读 · 1 评论 -
Hibernate笔记
hibernate 自动建表的字符编码问题 在数据库连接url中加入?useUnicode=true&characterEncoding=utf8 或者重写下MySQL5InnoDBDialect,在配置文件中将方言指定成重写后的方言 package com.yrj.dialect; import org.hibernate.dialect.MySQLDialect; public原创 2018-01-24 19:54:55 · 207 阅读 · 0 评论