`
baizheng
  • 浏览: 129425 次
社区版块
存档分类
最新评论
文章列表
很多朋友都用过或者正在用UltraEdit,这个编辑器陪伴我也好几年了,从很多地方影响着我写代码的快捷键习惯,Ultraedit提供了非常丰富的编辑功能,其中非常重要的查找和替换功能一定大家都用过,Ultraedit提供的查找替换功能非常方便和强大,可以在单独文件里面查找替换,也可以在多个文件、多个目录里面进行查找替换。而我们在使用这些查找替换功能的时候,一般都是针对某个字符串进行,前两天我要对一个目录下(包含子目录)所有的html文件中某一段代码进行查找替换,一下子不知道怎么操作了,由于长期写程序用到正则表达式,于是猜想具备如此强大功能的Ultraedit一定也有这样类似的匹配功能,于是点击H ...
Mysql取得最新插入的auto_increment列的值关键词: Mysql    auto_increment                                           select last_insert_id() as ID from tablename limit 1 
为什么在Oracle9i里,我定义的字段类型为varchar2(50),为什么只能存16个汉字呢?並且系統會提示:ORA-01401: 插入的值对于列过大 解決辦法:(1)注册表里:HKEY_LOCAL_MACHINE--SOFTWARE--ORACLE-HOME0--NSL_LANG的值为:SIMPLIFIED CHINESE_CHINA.ZHS16GBK (2)查了数据库:select * from props$ (3) 查询了数据库视图:select * from V$NLS_PARAMETERS (4)对系统表执行以下操作: update props$ set value$='ZHS16 ...
在tomcat中redeploy时出现outofmemory的错误.可以有以下几个方面的原因:1,使用了proxool,因为proxool内部包含了一个老版本的cglib.2, log4j,最好不用,只用common-logging3, 老版本的cglib,快点更新到最新版。4,更新到最新的hibernate3.2
http://pro.html.it/niftycube/ http://pro.html.it/niftycube/nifty12.html  效果图   If you're new to Nifty Corners, I suggest to look in particular at the article on the first version to understand the concept behind them. Basically, Nifty Corners are a solution based on CSS and Javascript to get rounded ...
 <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">       <!--<property name="dataSource" ref="dataSource"/>-->        <property name="mappingResources">            <list>        ...
想要支持hibernate3.12的valuelist的可以发邮件到 bzshow 在 gmail select new com.sina.model.TopPubInfo(info.studentAccount.username,info.teacherSex) from PublishInfo info order by info.publishTime desc 其中定义如下 public class TopPubInfo { /** identifier field */ protected String name; protected byte teacherSex; ...
在jsp代码中这样写<vlh:column title="First" property="firstNameAsString" adapterProperty="firstName" sortable="desc" />   相应的pojo中要加上getFirstNameAsString这个函数 public class Player { public Player() { } public Player(String name, String firstName, String mi ...
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">         <property name="hibernateProperties">             <props>                 <prop key="hibernate.connection.driver_class">org.hsqldb.jdbc ...
I recently launched a new site based on Struts, Hibernate and MySQL and immediately ran into a weird issue where Hibernate lost the ability to make database connections after a long period of inactivity. For the record, the stack trace is below:java.sql.SQLException: Communication link failure: java. ...
StringBuffer buf = new StringBuffer();   if (!forObject) {    buf.append("select count(*) ");   }   buf.append("from Agent agent where 1=1 ");            String gradeId = (String)conditions.get("gradeId");            if(gradeId != null && !gradeId.equals("&q ...
http://bjzhanghao.cnblogs.com/archive/2004/12/10/75145.html在一个项目中,客户要求除操作系统外全部使用免费软件,因此我使用了Mysql 4.0作为数据库服务器,其JDBC驱动为3.0.9版本,在给客户安装后调试一切正常。可是到了第二天,只要一登录就提示“No operations allowed after connection closed”异常,显示在浏览器上。在经过一番检查后我发现,在这种情况下只要重新启动Tomcat就恢复正常,然而到了第二天问题依旧。在网上查找一下,原来Mysql在经过8小时不使用后会自动关闭已打开的连接,摘录原 ...
Why I get a "AmbiguousTableNameException" and NoSuchTableException? This error occurs when no schema is specified and that DbUnit detect that it is getting columns information from multiple tables having the same name and located in different schemas. You can solve this problem in three dif ...
在action中:        String hsql = "FROM com.ruancu.model.MailTemplate AS vo " +                      "/~name: WHERE vo.identifier LIKE {name} ~/" +                      "/~sortColumn: ORDER BY vo.[sortColumn] [sortDirection] ...
Valuelist使用指南续-对象作为where子句的条件 corporation/ComAccountAction.java public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (log.isDebugEnabled ...
Global site tag (gtag.js) - Google Analytics