`
茶是树叶
  • 浏览: 57525 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
什么是Session Bean? Session Bean封装了业务逻辑的,能被本地客户端,远程客户端,以及web service客户端通过编程的方式调用。为了访问部署在服务器上的应用,客户端需要调用session bean的方法。Session Bean在服务器中为客户端执行运算,使客户端不必关注复杂的业务逻辑。 Session bean不是持久的。 Session Bean的类型: 有状态的(stateful),无状态的(stateless),单例的(singleton) Stateful Session Beans 对象的状态是由它的实例化变量值组成的。在有状态的session bea ...
查看机器上jdk是多少位的,用下面的方法 String arch = System.getProperty("sun.arch.data.model")); System.out.println(arch);
搞了一天的Spring Security,从早折腾到黑。在这把思路整理一下,为需要的朋友做个参考。 主要参考了http://blog.csdn.net/csuliky/archive/2009/06/17/4277413.aspx的文章及Spring官网的例子。 首先配置web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" x ...
Query query = em.createQuery("from Person p order by id asc"); List list = query.setMaxResults(max).setFirstResult(index).getResultList();
启动,停止,重启 sudo /etc/init.d/apache2 start sudo /etc/init.d/apache2 stop sudo /etc/init.d/apache2 restart 配置文件路径 /etc/apache2/apache2.conf 网站字符编码配置路径 /etc/apache2/conf.d/charset 默认网站根目录 /var/www 更改默认字符集 终端中使用命令 sudo vim /etc/apache2/conf.d/charset 将其中的 # AddDefaultCharset 的井号去掉,后面字段改成UTF-8 ...
<?xml version="1.0"?> <company> <employee> <firstname>Tom</firstname> <lastname>Cruise</lastname> </employee> <employee> <firstname>Paul</firstname> <lastname>Enderson</lastname> </employee> < ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.beforespring.template; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; ...
when song change,the rhythmbox will prompt a notification which show the song's name .but sometimes it is so bored .so if you want to remove the notification. open the command line and type 'gnome-osd-properties' and close it.
If you use the 'kdewallet' in ubuntu,sometimes maybe forget the password you have set.When you open some software ,ubuntu will prompt the error message just like 'Error opening the wallet 'kdewallet'. please try again....'. One way to solve this ,you have to click 'cancel' button every time , the oth ...
ubuntu安装飞鸽网上到处都是,安装完了乱码问题却没几个人说对。 在飞鸽的主界面选择设置首选项,在字符编码的外部代号选择gb18030,就是兼容gbk和gb2312的编码,选择是就可以解决乱码问题了。
Java 5添加了java.util.Scanner类,这是一个用于扫描输入文本的新的实用程序。它是以前的StringTokenizer和Matcher类之间的某种结合。由于任何数据都必须通过同一模式的捕获组检索或通过使用一个索引来检索文本的各个部分。于是可以 ...
package sort; import java.util.Random; /** * 排序测试类 * * 排序算法的分类如下: 1.插入排序(直接插入排序、折半插入排序、希尔排序); 2.交换排序(冒泡泡排序、快速排序); * 3.选择排序(直接选择排序、堆排序); 4.归并排序; 5.基数排序。 * * 关于排序方法的选择: (1)若n较小(如n≤50),可采用直接插入或直接选择排序。 * 当记录规模较小时,直接插入排序较好;否则因为直接选择移动的记录数少于直接插人,应选直接选择排序为宜。 * (2)若文件初始状态基本有序(指正序),则应选用直接插人、冒泡或随机的快速排序为宜; ...
1.document.write( " "); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document- >html- >(head,body) 4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById( "表单中元素的ID號 ").name(或value) 6.一个小写转大写的JS: document.getElementById( "ou ...
CHAR   固定长度字符串   最大长度2000   bytes      VARCHAR2   可变长度的字符串   最大长度4000   bytes     可做索引的最大长度749    NCHAR   根据字符集而定的固定长度字符串   最大长度2000   bytes        NVARCHAR2   根据字符集而定的可变长度字符串   最大长度4000   bytes        DATE   日期(日-月-年)   DD-MM-YY(HH-MI-SS)   经过严格测试,无千虫问题    LONG   超长字符串   最大长度2G(231-1)   足够存储大部头 ...
在java.lang包中有String.split()方法,返回是一个数组 我在应用中用到一些,给大家总结一下,仅供大家参考: 1、如果用“.”作为分隔的话,必须是如下写法:String.split("\\."),这样才能正确的分隔开,不能用String.split("."); 2、如果用“|”作为分隔的话,必须是如下写法:String.split("\\|"),这样才能正确的分隔开,不能用String.split("|"); “.”和“|”都是转义字符,必须得加"\\"; 3、如果在一个字符串中 ...
Global site tag (gtag.js) - Google Analytics