摘要: 在tomcat中部署好cas server(设置好https,将cas.war拷贝到了webapps下部署完成),启动tomcat后,访问 http://localhost:8443/cas/login时,报出异常 阅读全文
posted @ 2014-04-09 09:48 愤怒的码农 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: [root@csyang ~]# su - oracle #首先su到oracle用户[oracle@csyang ~]$ sqlplus sys/passwd as sysdba #使用sys用户登录sqlplus SQL> startup #使用startup命令启动ORACLESQL> exit #退出sqlplus[oracle@csyang ~]$ ps -ef|grep oracle #查看oracle进程[oracle@csyang ~]$ lsnrctl stat #查看oracle数据库监听状况[oracle@csyang ~]$ lsnrctl start #如 阅读全文
posted @ 2013-10-08 09:12 愤怒的码农 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 在应用swf的标签中加入如下属性: 阅读全文
posted @ 2013-09-27 15:17 愤怒的码农 阅读(162) 评论(0) 推荐(0) 编辑
摘要: create user BUSM identified by BUSM;grant connect,resource,dba to BUSM; grant select any table to BUSM;grant delete any table to BUSM;grant insert any table to BUSM;grant update any table to BUSM;grant execute any procedure to BUSM;select 'drop table ' || table_name ||';'||chr(13)||c 阅读全文
posted @ 2013-09-10 16:54 愤怒的码农 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 用hibernate做数据库插入操作时,在数据库端已经设置了对应列的默认值,但插入的数据一直为null。查找资料发现,原来是hibernate的配置项在作怪。 Hibernate允许我们在映射文件里控制insert和update语句的内容.比如在映射文件中<property 元素中的update属性设置成为false,那么这个字段,将不被包括在基本的update语句中,修改的时候,将不包括这个字段了.insert同理.dynamic动态SQL语句的配置也是很常用的.下面介绍配置SQL语句的具体属性:1)<property元素 insert属性:设置为false,在insert语句中 阅读全文
posted @ 2013-08-30 17:17 愤怒的码农 阅读(2743) 评论(0) 推荐(0) 编辑
摘要: package com.huawei.ha.modmgr.util;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.util.HashMap;import java.util.Map;import org.apache.commons.fileupload.FileItem;import com.huawei.bass.query.core.config.BIPropertiesBean;/** * @Description: 处理上传附件,校验是否 阅读全文
posted @ 2013-08-29 19:12 愤怒的码农 阅读(12942) 评论(2) 推荐(2) 编辑
摘要: 先看一下表单效果:点击图标,显示图标列表:实现代码: var appform = new Ext.form.FormPanel({ id: 'appform', cardStep:0, url:Adc.url.appAction, padding:'10px 20px', labelWidth: 80, baseCls: 'x-plain', method:'POST', defaults: { xtype: ... 阅读全文
posted @ 2013-08-22 15:55 愤怒的码农 阅读(976) 评论(0) 推荐(0) 编辑
摘要: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationPr 阅读全文
posted @ 2013-08-05 15:20 愤怒的码农 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 问题: 在web.xml 中配置了 error-page,但是好像不起作用,就是跳转不到指定的页面。 配置信息如下: 1 2 3 400 4 /WEB-INF/deploy/pms/jsp/error.jsp 5 6 7 8 404 9 /WEB-INF/deploy/pms/jsp/404.jsp10 11 12 13 50014 /WEB-INF/deploy/pms/jsp/500.jsp15 解决办法: 保证跳转的页面路径都正确的话,可能的原因是IE的设置问题... 阅读全文
posted @ 2013-08-05 15:19 愤怒的码农 阅读(3387) 评论(0) 推荐(1) 编辑
摘要: which 查看可执行文件的位置。whereis 查看文件位置。locate 配合数据库查看文件位置。find 实际搜索硬盘查询文件名称。grep 查找文件内容一般不常用find命令,因为find命令比较庞大,搜索范围太大了,耗时长。对于which,它是根据PATH环境变量到该路径寻找可执行文件,所以它基本上就是“寻找可执行文件”命令。whereis呢?这个比较灵活了,可以加上参数来锁定精确的搜索一下,比如-b参数,就是只找二进制文件;-u参数,找没有说明文档的文件……等等。locate就更好了,它是这里最快的命令。可是有个缺点,它为什么快呢?因为locate是从本地的数据库文件中找(好像WI 阅读全文
posted @ 2013-08-02 09:46 愤怒的码农 阅读(399) 评论(0) 推荐(0) 编辑