`
lwcheng1985
  • 浏览: 93277 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
  转自:http://zhuge.iteye.com/blog/295513 非常感谢 oC与DI   首先想说说IoC(Inversion of Control,控制倒转)。这是spring的核心,贯穿始终。所谓IoC,对于spring框架来说,就是由spring来负责控制对象的生命周期和 对象间的关系。这 ...
服务端: package com.test.dp; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; public class MyServer extends Thread{     private Socket cq;     public MyServer(Socket cq ...
我从这里 转来的,的确是篇好文,很有道理,不只针对建站,对所有business都值得借鉴。 —————————————————————————————— 1. 250定律 拉德认为:每一位顾客身后,大体有250名亲朋好友。如 ...
转自:http://www.prglab.com/blog/p/48 原作:Cay Horstmann 英文原文 翻译:Aqua  prglab.com 注:很多程序员包括本人在内都是先学会的Java,然后才学的C++,其实C++与Java有很多相似和互通之处,有相当 的Java知识可以对应转化到C++概念,从而帮助我们快速上手。这篇文章介绍的内容就对从Java向C++转变很有帮助,所以翻译推荐给有同样需要的朋 友。翻译中加入了本人的理解,不完全是全文照搬。有不明或异议,请参考原文,或留言讨论。还是那句话,推荐多读原版资料。 学习怎样从一种编程语言转 ...
转自:http://ttitfly.iteye.com/blog/127337 1.下载apache (http://httpd.apache.org/ ) 2. 解压   tar xzvf httpd- 2.2 . 6 .tar.gz   3. ./configure --prefix=/home/mahaibo/apache   3. make   4. make install   5. 安装成功后,配置 vi /home/mahaibo/ap ...
转自:http://www.cnblogs.com/starspace/archive/2009/05/15/1458046.html 放弃IDE,用VIM进行c/c++程序开发 老廖曾经在PHPER杂志上发表过一篇文章叫做用VIM做PHP开发环境 ,在里面详细介绍了用VIM做php开发需要做的准备,这篇文章就结合一些资料和我自己的一些经验来介绍下用VIM做C/C++开发需要做的事情,相对来说要比做php开发方便些。 前提条件是当然是你已经下载了VIM,如果没有的话请先到官方网站下载最新版本,地址是:http://www.vim.org/download.php 帮助文 ...
reference:http://www.aaronsw.com/weblog/hiring There are three questions you have when you’re hiring a programmer (or anyone, for that matter): Are they smart? Can they get stuff done? Can you work with them? Someone who’s smart but doesn’t get stuff done should be your friend, not your emp ...
转自:http://developer.51cto.com/art/200906/129164.htm 一、Java安装之Java环境安装 1.  从sun主页下载JDK for Linux版本。这里下载的是jdk-6u6-linux-i586.bin。 2. 用root用户登录ubuntu,或是在普通用户下用su命令切换用户。切换到所需的安装目录。类型:cd <目录路径名>   例如,要在 /usr/java/ 目录中  安装软件,请键入:cd /usr/java/, 把jdk-6u6-linux-i586.bin文件拷贝这个目录里面,设置权限为可执行类型:chmo ...
刚开始学习samba,感谢原作者。 在Ubuntu中设置samba共享可读写文件夹 收藏 首先当然是要安装samba了,呵呵: 代码: sudo apt-get install samba sudo apt-get install smbfs 下面我们来共享群组可读写文件夹,假设你要共享的文件夹为: /home/ray/share 首先创建这个文件夹 代码: mkdir /home/ray/share chmod 777 /home/ray/share 备份并编辑smb.conf允许网络用户访问 代码: sudo cp /etc/samba/smb.conf /etc/ ...
Linux下常用解压缩命令 linux 解压 tar.gz 文件命令:tar zxvf tomcat6.0.tar.gz linux 修改文件名: mv tomcat5.0 tomcat6.0 查看某个进程:ps -ef | grep tomcat 复制文件 : cp 文件名 目标路径 唤起机器 : ether-wake 目标网卡地址 登录系统 ...
Hibernate-mapping <hibernate-mapping          schema="schemaName"                          (1)          catalog="catalogName"                        (2)          default-cascade="cascade_style"              (3)          default-access="field|property|ClassName&qu ...
实现一个默认的(即无参数的)构造方法(constructor) Cat has a no-argument constructor. All persistent classes must have a default constructor (which can be non-public) so that Hibernate can instantiate them using Constructor.newInstance() . It is recommended that you have a default constructor with at ...
 二进制流 (Binary Streams) Oracle limits the size of byte arrays that can be passed to and/or from its JDBC driver. If you wish to use large instances of binary or serializable type, you should enable hibernate.jdbc.use_streams_for_binary . This is a system-level setting only. ...
An instance of a persistent class can be in one of three different states. These states are defined in relation to a persistence context . The Hibernate Session object is the persistence context. The three different states are as follows: 瞬态(transient) The instance is not associate ...
What does sessionFactory.getCurrentSession() do? First, you can call it as many times and anywhere you like once you get hold of your org.hibernate.SessionFactory . The getCurrentSession() method always returns the "current" unit of work. Remember that we switched the configuration opt ...
Global site tag (gtag.js) - Google Analytics