- 浏览: 69314 次
最新评论
-
tidehunter:
不错 ,不过呢提点个人建议第一:建一个managerserv ...
我的JMS第一个程序
文章列表
eclipse hotkey
- 博客分类:
- other
1. Auoto add override method hotkey
CTRL + 3, in the open window, enter "override"
http://stackoverflow.com/questions/54886/hidden-features-of-eclipse
http://www.gocertify.com/quizzes/#java
step1: add gateway
vi /etc/sysconfig/network
add below "GATEWAY" line
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1
step2: add your new IP address
update dhcp to static,
add your ipaddr line
add your netmast line
DEVICE=e ...
前几天XP升级了SP3,导至thinkpad的光盘不可用,光驱型号HL-DT-ST GSA-T50N。找了很多资料都不行,就是微软自己的这个检测工具都不行:
http://diagnostics.support.microsoft.com/diagprov/provision/MicrosoftFixit.dvd.RNP.160282074827208017.3.1.Run.exe?_tenant=mats&diagid=dvd&entrypointid=RNP&logsessionid=160282074827208017&eventseqno=3&bu ...
1. change user : SU
eg: if current user is root, u want to change to another user A, then : su userA
1. just list directory:
ls -l| grep ^d
2. list specific character directory
ls -d abc*
3. list directory via time
ls -l -t
ls -lrt
4. check whether a port number is used:
netstat -n | grep 1501 ...
http://stackoverflow.com/questions/859414/jmx-defined
1. Father of the Java programming language
James Gosling, generally credited as the inventor of the Java programming language in 1994. He created the original design of Java and implemented its original compiler and virtual machine. For this achievement he was elected to the United States National ...
前言:今天被人问到了TDD和Junit,竟然不会,太out了,回来看了几分钟,没想到junit这么简单,写个程序记一下。
Junit是同极限编程中的TDD联系在一起的,所谓TDD就是Test Driven Development.
1,安装Junit
eclipse---windows--Preferences--java---Build Path ---new
Name,输入名称,随便; path:选择你下载的Junit的jar文件
2.实例
编程实现anagram,所谓anagram,是一种单词game:两个比较的单词,字符长度一样,字符顺序不一样。比如: hello,Ell ...
开发环境:SpringSource Tool Suite 2.9.2 RELEASE JDK: 1.6
程序类别: Spring Template Project--->Simple Spring Utility Project
Spring bean的生命周期如下,以下程序实验图中红框内容:
SimpleBeanWithInterface.java
package net.codercn.prospring3.ch5;
import javax.annotation.PostConstruct;
import org.springframework.bean ...
http://blog.csdn.net/linwei_1029/article/details/7010539
Oracle 建表,添加主外键,序列,触发器
- 博客分类:
- 数据库
select * from user_objects where object_type='TABLE';
--删除contact表,包括删除与其相关的约束
drop table contact cascade constraints
--创建contact表
create table contact(
id number(6) not null primary key
,first_name varchar2(20) not null
,last_name varchar2(20) not null
,birth_date Date
--,constraint pk_con ...
oracle查询指定范围的数据
- 博客分类:
- 数据库
方法一:rownum法
select * from
(select t.*, rownum rn from empt where rownum <21)
where rn > 10;
方法二: minus法
select * from emp where rownum<21
minus
select * from em where rownum<10
读取properties配置文件
- 博客分类:
- java
读取properties配置文件如下:
package conf;
import java.io.InputStream;
import java.util.Properties;
public class ReadProp {
public static void main(String[] args){
String fileName = "/conf/msf.properties";
Properties props = new Properties();
try{
InputStream in = ReadProp.cl ...
使用JQuery设置元素的属性方式:$("#element").attr("property",value);
<TD class="tdright" noWrap width="13%">
<INPUT class=text1 id="aa" name="aa_name" value="<s:property value="aa_name" />" onKeyUp="toUpperCase( ...
jdbc连接oracle示例库
- 博客分类:
- Jsp/Servlet
package jdbc.test;
import java.sql.*;
public class PreparedStatement {
public static void main(String[] args){
String dbDriver = "oracle.jdbc.driver.OracleDriver";
String dbUrl = "jdbc:oracle:thin:@localhost:1521:orcl";
String dbUser = "scott";
String d ...
今天无事看了看JMS,遵循网上的一些相关代码,修改修改,终于完成了我的JMS处女作。
JMS理论部分太多,不能说太细,否则扯太远,看官们也不喜欢,不过下面这个可以看看
http://www.cnblogs.com/GeneralXU/archive/2010/05/11/1732852.html
程序环境 we ...