- 浏览: 39390 次
- 性别:
- 来自: 重庆
-
最新评论
文章列表
websphere 部署应用程序名乱码
- 博客分类:
- BUG ERROR
今天在webspher上部署应用的时候,应用程序名的地方一直出现乱码,找了好久的原因,发现war包是放在中文路径下面的,于是将war包换了个地方,就一切OK了。
websphere6 编码修改:
选中 :应用程序服务器 > server1 > 进程定义 > Java 虚拟机
通用jvm调用参数添加:-Dfile.encoding=UTF-8
也可以改成gbk
webspher管理节点启动不了解决方法
- 博客分类:
- java
:
[10-12-13 10:27:10:328 CST] 0000000a AdminTool A ADMU7704E: 在尝试启动与服务器相关联的 Windows 服务时失败:dmgr;在执行 WASService.exe 时可能发生了错误:Starting Service: MICROSOF-E2A16FCellManager01Timed out waiting for service to respond to command, after 60 seconds.Failed to start service, or timed out while waiting for ...
orcle 删除表空间和用户
- 博客分类:
- datebase
DROP TABLESPACE 空间名 INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS
drop user 用户名cascade
//创建临时表空间 create temporary tablespace zfmi_temp tempfile 'D:\oracle\oradata\zfmi\zfmi_temp.dbf' size 32m autoextend on next 32m maxsize 2048m extent management local; //tempfile参 ...
spring 获取context单例
- 博客分类:
- java
private static ApplicationContext context;
public static void initContext(){
context = new ClassPathXmlApplicationContext( "classpath*:config/spring/*.xml");
}
public static ApplicationContext getContext(){
if(context==null)
initContext();
return context;
}
1.spring 配置service 和dao的时候碰到以下bug, Failed to convert property value of type,原因是因为DAO的实现接口写错了,写成了service 的接口实现,所以报了以下错误。标记~~
Error creating bean with name 'clbdbjService' defined in ServletContext resource [/WEB-INF/classes/config/spring/publicsystem-service.xml]: Initialization of bean failed; neste ...
package com.zl;
import java.io.File;
import java.io.FileWriter;
import java.io.Writer;
import java.util.Iterator;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
im ...
SQL Server函数大全
--聚合函数
use pubs
go
select
1. 保留2位小数
java.text.NumberFormat formater =java.text.DecimalFormat.getInstance();
formater.setMaximumFractionDigits(2);
formater.setMinimumFractionDigits(2);
System.out.println(formater.format(3.2343242343));
System.out.println(formater.format(30000));
2.查询某一列值相等的大于1的返回值
SELECT t.cd_name,
...
JavaScript
/...................
判断数字的自带方法 isNaN()
如果是数字 返回false
不是数字 返回true
/.........................
replace(/^\s+|\s+$/g,"");
去掉字符串中的空格。
ex: String.replace(/^\s+|\s+$/g,"");
//........................
JS实现页面跳转的几种方式
第一种:
window.location.href="“
第二种:
window. ...
查询字段以汉字开头:
select * from tb_product where proname like '[啊-座]%'
啊是第一个汉字,座是最后一个。不过不知道跟编码有没有关系。
查询字段以数字开头
select * from tb_product where proname like '[0-9]%'
反之在 like 前面加个not就行了。
先选中你的数据库
创建过程:
CREATE PROCEDURE sp_DeleteAllData
AS
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'ALTER TABLE ? DISABLE TRIGGER ALL'
EXEC sp_MSForEachTable 'DELETE FROM ?'
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'ALT ...