tomcatlinux命令The BASEDIR environment variable is not defined correctlyThis environment variable is needed to run this program原来要为bin目录下所有的.sh文件授予权限执行命...
分类:
系统相关 时间:
2015-01-23 16:02:01
阅读次数:
199
在工作中常用的几个宏定义
1 几个#ifndef连用
#ifndef _WIN32
#ifndef Sleep(n)
#define Sleep(n) usleep((n)*1000)
#endif
#endif
2 几个#if defined连用的定义
#if defined(__WIN32__) || defined(_WIN32) || defined(_WIN32_WC...
分类:
其他好文 时间:
2015-01-22 15:34:08
阅读次数:
182
1、通常出现jsp页面报错 那是因为server没有绑定 build path ->apache-tomcat ->edit2、target runtime apache tomcat is not defined ->.setting->org.eclipse.wst.common.project...
分类:
其他好文 时间:
2015-01-22 12:29:54
阅读次数:
134
-------------------------------------------------------------------------------说明: White space is defined as the ASCII space character, horizontal tab...
分类:
编程语言 时间:
2015-01-22 01:39:13
阅读次数:
224
Hook ptrace 调试加入了ptrace函数的程序#import #if !defined(PT_DENY_ATTACH)#define PT_DENY_ATTACH 31#endifstatic int (*_ptraceHook)(int request, pid_t pid, caddr...
分类:
其他好文 时间:
2015-01-21 19:55:02
阅读次数:
166
The RGB color model is an additive system in which each color is defined by the amount of red, green, and blue light emitted. In the RGB scheme, color...
分类:
其他好文 时间:
2015-01-20 23:53:32
阅读次数:
230
/* A null pointer constant. */
#if defined (_STDDEF_H) || defined (__need_NULL)
#undef NULL /* in case has defined it. */
#define NULL ((void *)0)
#endif /* NULL not defined and or need NUL...
分类:
其他好文 时间:
2015-01-20 20:31:22
阅读次数:
179
引言: 在Spring Web项目中一般都会使用OpenEntityManagerInViewFilter来保证JPA session的正常关闭,在笔者的项目中,使用了Spring + Spring Data + JPA + Hibernate来的架构来组织项目,碰到了org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined 的异常信息,将过...
分类:
编程语言 时间:
2015-01-20 15:55:10
阅读次数:
504
1、Action返回字符串(逻辑视图名称)
元素中查找 逻辑视图名 对应 局部
如果局部不存在, 会查找全局 (每个package里都可以定义一些全局 )
* 如果局部 和全局 都没有找到 No result defined for xxx
2、配置 每个result 有两个属性 name 和 type
默认type属性值 dispatcher
...
分类:
编程语言 时间:
2015-01-20 13:49:17
阅读次数:
176
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2015-01-20 13:36:44
阅读次数:
172