- 浏览: 89728 次
- 性别:
- 来自: 广州
最新评论
-
yhjhoo:
你这个翻译不准确原文是这个样子的# Default runle ...
chkconfig -
明天的昨天:
文章不错,转载了。谢谢
Common Errors in Setting Java Heap Size -
sushi0k:
虽然写了这么多详细的信息 但是我还是不懂怎么去部署一个web ...
Tomcat配置技巧详解分析
文章列表
security.MyClassLoaderTest 入口点
Class security.MyClassLoaderTest
package security;
import java.lang.reflect.Method;
import java.net.URL;
public class MyClassLoaderTest {
public static void main(final String[] args) throws Exception {
URL[] urls = new URL[] {new URL(" ...
http://stackoverflow.com/questions/2887967/what-is-resource-ref-in-web-xml-used-for
(2009-07-10 11:20:22)
转载
标签:
http
杂谈
分类:php
在负载均衡环境中(LVS, LoadBalance)为了减少浏览器数据的重复请求操作,一般需要设置 Http Header 的 Etage 和 Expires 告诉浏览器请求数据是否已过期。以下内容主要考虑Apache+squid 环境。
ETag Header是文件修改时间、文件大小和inode号生成的校验(checksum),在多台服务器的负载均衡环境下会因部署内容的inode节点差异造成 ETag 的不同,在多台WEB前端做负载均衡的情况下,会因为请求同一个数据但不同机器的 ...
<%@ page import="java.net.URLEncoder"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page language=" ...
In Fedora Core 5/6 and RHEL 5. We have made it easier to customize certain common parts of SELinux. In previous releases of SELinux if you wanted to change simple things like which port a daemon could listen to, you would need to write policy. Now we have the semanage utility.
SELinux assigns type ...
<project name="avm" default="hkdev22" basedir=".">
<description>
The build file for AVM project
</description>
<!-- set global properties for this build -->
<property name="prj_name" value="avm" />
<pr ...
import java.util.Timer;
import java.util.TimerTask;
class NvWa{
public void find(short i){
System.out.println("(short) i");
}
public void find(float i){
System.out.println("(float) i");
}
public void find(int i){
System.out.println("(int) ...
<%@ page language="java" pageEncoding="UTF-8" autoFlush="true" buffer="10kb" contentType="text/html; charset=UTF-8"%>
<%
String name="";
for(int i = 0 ;i<1024*10; i++){
name+="D";
}
System.out.println(" === ...
<%@ page language="java" pageEncoding="UTF-8" autoFlush="false" buffer="10kb" contentType="text/html; charset=UTF-8"%><%
//jsp.error.page.badCombo
//autoFlush="false" buffer="none"
/***
从源码 可以看出
out 最后将自动清理缓存//所以要测试 ...
void
java.lang.Runtime
.addShutdownHook(Thread
hook)
Registers a new virtual-machine shutdown hook.
The Java virtual machine shuts down
in response to two kinds of
events:
The program exits
normally, when the last non-daemon thread exits or
when the exit
(eq ...
IndexDelegateAction
package com.gt.kathleen.http.action.api;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.text.View;
import org.springframework.web.servlet.ModelAndView;
...
ControllerClassNameHandlerMapping控制器是根据控制器短类名和URL请求匹配,如:
* WelcomeController:对应/welcome*的Url请求
* UserController:对应/user*的url请求
具体来说是将控制器的Controller后缀移除(IndexController=>Index),再将剩余部分转为小写(index)得到的字符串作为请求URL的配置前缀
配置文件代码如下:
# <!-- 根据控制器短类名和URL请求匹配 -->
<bean class="or ...
/*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC ...
Java Annotation手册
作者:cleverpig(作者的Blog:http://blog.matrix.org.cn/page/cleverpig)
原文:http://www.matrix.org.cn/resource/article/44/44055_Java+Annotation+Reflect.html
关键字:java,annotation,reflect
前言:
在上篇文章《Java Annotation入门》中概要性的介绍了A ...
1.新建用户。
//登录MYSQL
@>mysql -u root -p
@>密码
//创建用户
mysql> insert into mysql.user(Host,User,Password) values("localhost","phplamp",password("1234"));
//刷新系统权限表
mysql>flush privileges;
这样就创建了一个名为:phplamp 密码为:1234 的用户。
然后登录一下。
mysql>exit;
@> ...