ITeye博客

guanshuiwang的博客

guanshuiwang · 共 33 篇文章

使用 PL/SQL Developer 导入 Excel数据

在项目交付后期经常遇到数据迁移的工作。 一般给的数据没有ID,即primary key .需要在excel里添加一列,如ID. 把excel文件另存为Text(Tab delimited) 文件 打开plsql连接到要导入的oracle数据库再打开Tools --> Text importer... --> Open data file 选择要导入的txt文件 设置general configuration: 如果excel数据有表头,在name in head上打勾. 设置Field End.设置以tab键为列分隔符 在设置Fields时如需数据转换,可以用SQL function功能,即…

2013-03-26 16:23 · Java core · Oracle · 评论(0)

weblogic 12 && struts2

Struts Action mapping问题请参考以下内容: Struts2.18以后版本在Weblogic12c上关于Action注解的运行调整。 weblogic12c在加载项目时会把WEB-INF下的classes目录打成jar包。并删除classes目录下的内容。 struts2.18的Action注解要找jar包,需要jar包内有META-INF/Manifest文件,内容无所谓但要有,因此会造成一般的 struts项目放到Webligic上后注解半不生效。改动在src目录下添加META-INF/Manifest文件,在struts.xml添加如 下设置: <constant n…

2012-03-29 10:56 · 评论(0)

maven tools.jar

unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment v…

2012-02-01 15:54 · 评论(0)

OSGI-ECLIPSE MODULE 开发

OSGi offers the following advantages: You can install, uninstall, start, and stop different modules of your application dynamically without restarting the container. Your application can have more than one version of a particular module running at the same time. OSGi provides very good infrastructu…

2012-01-31 16:47 · 评论(0)

documentum - webtop - flow

今天在documentum webtop上开发了一个小的添加功能 修改browsertree_component.xml 修改menubar_component.xml 根据action创建xxx_action.xml 设置参数,初始化类(precondition) 添加相应的container, component 创建xxx_container.xml 设置参数 设置start page 设置component 设置处理类 设置国际化文件 创建xxx_component.xml 同container

2012-01-12 11:07 · 评论(0)

Hibernate Naming convertions

But then come your local friendly DBAs, who will be glad to tell you about their set of database naming conventions -- conventions that date from before the demise of the dinosaurs, and that aren't about to change! These database conventions usually have quite valid reasons to exist, and in any cas…

2011-12-22 11:50 · 评论(0)

内存溢出

关于内存溢出,我们可以在启动tomcat时,加参数“-XX:+HeapDumpOnOutOfMemoryError”。 这样,但内存溢出时,会生成heap dump文件。 然后,可以通过如MemoryAnalyzer等分析工具,进行分析,定位是否有内存泄露。

2011-12-20 13:42 · 评论(0)

使用FindBugs检查程序中的缺陷

请使用FindBugs工具检查程序中的缺陷。FindBugs可以比较专业的代码静态检查工具,我们可以通过使用这个工具来学习如何编写更加健壮的代码。 你们可以用Eclipse中的”Install new software”从 http://findbugs.cs.umd.edu/eclipse/ 下载这个工具。 使用起来还是挺方便的,如果用过eclipse其他插件的话,很快就会上手了。

2011-10-09 13:47 · 评论(0)

ibatis update set null

Today , when I want to set a field null using Ibatis . I found we must modify the generated mapping file . In the default mapping file : <if test="thefield != null">the_field = #{thefield},</if> . If wanna set the the_field to null , in your program , you must add a script : <if test="thefield == n…

2011-08-26 13:01 · 评论(0)

PL/SQL Developer 中文乱码解决

1、select * from v$nls_parameters 查询nls的参数,获得数据库 服务器 端的字符编码 NLS_LANGUAGE NLS_CHARACTERSET 2、修改本地环境变量,设置 NLS_LANG = SIMPLIFIED CHINESE.ZHS16GBK //这个是我们的数据库字符编码 NLS_LANG格式: NLS_LANG = language_territory.charset 有三个组成部分(语言、地域和字符集),每个成分控制了NLS子集的特性。其中:language 指定 服务器 消息的语言。 territory 指定服务器的日期和数字格式。 chars…

2011-07-20 14:29 · 评论(0)

SimpleDateFormat and Thread Safety

SimpleDateFormat and Thread Safety Wednesday, October 10, 2007 It never fails to surprise me that so many developers are unaware that SimpleDateFormat is not thread-safe. It seems like almost all J2EE projects I work on have code that uses instance variables or static instance variables to store a …

2011-04-15 16:41 · 评论(0)

JBoss and JMS

JBoss和JMS(写的不错,抄来看看) 关键字: jboss jms 1、介绍 本章介绍在Jboss中使用Java Messageing Service (JMS). 不是JMS指南,而是JBoss和JMS如何一起使用,如果你想看JMS的介绍,请参考 JMS Specification 或 JMS turorial. 最近随着JBoss版本不断更新,对JMS支持越来越成熟,也造成JBoss各个版本之间的不同。在这里我主要介绍JBoss3.0.X版本。 本章给出的例子比较简单,并指出了如何使用JMS的原理。所有的例子可以通过ant build file 来建立。 为了能建立和运行此例子。我们…

2010-10-22 09:39 · 评论(0)

解决JAXB2.1和JDK1.6/6.0的问题

解决JAXB2.1和JDK1.6/6.0的问题 方案1: 1.8. Using JAX-WS 2.1 with JavaSE6 JavaSE6 ships with JAX-WS 2.0 API in rt.jar , which causes some trouble when you try to run applications that use JAX-WS 2.1 API. This document collects information about how to solve this issue. 1.8.1. Endorsed directory One way to fi…

2010-09-17 13:47 · 评论(0)

APACHE的MAVEN管理jar包

1、MAVEN的安装和配置 项目地址: http://maven.apache.org/download.html 下载到的文件: apache-maven-2.0.9-bin.zip 接压缩后拷贝到tool下面。配置path中加入: D:\tool\apache-maven-2.0.9\bin 然后在命令行中输入: mvn -version 返回: Maven version: 2.0.9 Java version: 1.5.0_12 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" maven就安装好了 …

2010-09-06 09:53 · 评论(0)

remote debugging

http://www.eclipsezone.com/eclipse/forums/t53459.html Remote Debugging with Eclipse At 8:22 PM on Nov 1, 2005, Levent Gurses wrote: <!-- Synopsis --> How many times trying to fix a server-side Java problem appeared trivial, but getting to the source of the problem took all the time? A remote debugg…

2010-09-02 14:43 · 评论(0)