文章列表
border='1' cellpadding='2' cellspacing='0' style='border-collapse:collapse;' bordercolor='#AA9FFF'
hibernate 父子类关系 注解配置:
父类:
@Entity
@Table(name = "COMP_PAGE_CONFIG_REC")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@ForceDiscriminator
@DiscriminatorColumn(name = "CATEGORY", discriminatorType = DiscriminatorType.STRING)
public abstract class PageConfigRec implements S ...
http://www.oracle.com/technetwork/java/javase/tsg-vm-149989.pdf#search=%22StackShadowPages%22
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
以上注释在tomcat-home/bin/catalina.sh中打开即可。
http://java.sun.com/developer/technicalArticles/javase/troubleshoot/
w3m 访问命令备忘
- 博客分类:
- 操作系统
das 备份csv原始文件:
w3m 'http://ip:port/sig-das/debugServletForLogin?name=21232f297a57a5a743894a0e4a801fc3&password=69b79d1c54793ff50ac9b1c8e1ca5328' -cookie -I UTF-8 -O gb2312
使用上下箭头移动链接,右箭头执行。
linux下的find命令是个很有用的命令,在此备忘一下。
1.
查看/usr/local/目录下所有的.svn目录(递归查找),并删除:
#find /usr/local -d -name ".svn" | xargs rm -r
2.
查看当前目录下的所有js文件,并且js文件中包含"conn"的片段:
#find . -name "*.js" | xargs grep "conn"
linux下查看端口占用情况:
1.
查看哪个进程占用了819端口:
case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # lsof -i:859
运行后的结果:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 24907 root 31u IPv4 248905027 TCP *:859 (LISTEN)
由以上我们知道了859端口被进程号为24907的进程占用了, 是个java进程。
2.
查看进程号为24907的进程在哪里:
case9-sghfo ...
例子:
//创建过程
create or replace procedure add_emailinfo(namee email_info.fullname%type ,address email_info.email_address%type )
is
begin
insert into email_info(fullname,email_address) values (namee,address);
end;
//调用过程
call add_emailinfo('cherry','asdfsdf');
...
java 对象的创建过程在thinking in java 中原话:
1. Even though it doesn’t explicitly use the static keyword, the constructor is actually a
static method. So the first time an object of type Dog is created, or the first time a
static method or static field of class Dog is accessed, the Java interpreter must
lo ...