会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大-雄
上一页
1
···
27
28
29
30
31
32
33
下一页
2015年8月24日
jar 包和批量处理
摘要: 打jar包: 选择要打包的文件: javac -d . Hello.java .代表打包的目标路径 jar cvf test.jar com //test是打包名称,com是打包的文件夹 修改test.jar的Manifest,加上Main-Class: com.donghua.test.Hello
阅读全文
posted @ 2015-08-24 19:59 卖肾割阑尾
阅读(370)
评论(0)
推荐(0)
2015年8月13日
解决No Hibernate Session bound to thread, and configuration does not allow creat。。。
摘要: applicationContext.xml配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.or
阅读全文
posted @ 2015-08-13 12:56 卖肾割阑尾
阅读(446)
评论(0)
推荐(0)
2015年8月11日
Spring—Hibernate
摘要: 1.家jar包 2配置applicationContext与xxx.hbm.xml(根据需要决定是否配置hibernate.hbm.xml) applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="htt
阅读全文
posted @ 2015-08-11 12:54 卖肾割阑尾
阅读(107)
评论(0)
推荐(0)
2015年8月9日
事物管理
摘要: jdbc事务管理xml配置 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSc
阅读全文
posted @ 2015-08-09 16:50 卖肾割阑尾
阅读(126)
评论(0)
推荐(0)
Spring_database_Template
摘要: 配置applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.or
阅读全文
posted @ 2015-08-09 15:39 卖肾割阑尾
阅读(214)
评论(0)
推荐(0)
AOP annotation
摘要: 1.xml文件 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springf
阅读全文
posted @ 2015-08-09 11:59 卖肾割阑尾
阅读(182)
评论(0)
推荐(0)
2015年8月8日
代理模式
摘要: 1 用于实现代理。静态代理 如果不用InvocationHandler接口实现代理的话,我们写代码是这样的: 定义一个接口: interface Greet { void sayHello(String name); void goodBye(); } 实现这个接口: class GreetImpl
阅读全文
posted @ 2015-08-08 21:51 卖肾割阑尾
阅读(126)
评论(0)
推荐(0)
2015年8月6日
Spring注解与Spring与Struts2整合
摘要: @Component @Controller @Service @Repository 四大注解作用基本一样,只是表象在不同层面 @Resource @Scope Struts2与Spring整合:1,添加Struts2的环境(jar包与配置文件)。2,添加Spring的环境(jar包与配置文件)。
阅读全文
posted @ 2015-08-06 17:19 卖肾割阑尾
阅读(198)
评论(0)
推荐(0)
2015年8月5日
Filter
摘要: 1.定义自己的过滤器,Myfilter 实现Filter接口 public class MyFilter implements Filter { FilterConfig filterConfig = null; public void init(FilterConfig filterConfig)
阅读全文
posted @ 2015-08-05 10:33 卖肾割阑尾
阅读(125)
评论(0)
推荐(0)
2015年7月30日
Hibernate 总结一
摘要: Session 当批量处理数据过大时,session这个集合会造成内存溢出,需要通过flush把session中的数据刷出到数据库中,让后再clear,清空缓存 一、集合映射。 类型 Java中声明 映射元素 Set Set <set> List List <list> Map Map <map>
阅读全文
posted @ 2015-07-30 19:41 卖肾割阑尾
阅读(144)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告