`
文章列表
基于annotation的SSH整合

SSH

备忘需要五个字
main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> ...
package org.lxh.demo; import android.app.Activity; import android.app.ProgressDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MyDialogDemo extends Act ...
package org.lxh.demo; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import and ...
<input type="text" name="aaa" value="" onkeyup="this.value=this.value.replace(/\D/g,'');" onafterpaste="this.value=this.value.replace(/\D/g,'')" />

SpringAOPXml

application.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context ...

SpringAOPAnnotation

application.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context ...
applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [color=green] xmlns:context="http://www.springframewor ...
真心没时间写博客 部署到tomcat下运行index.html即可

优化SQL语句方法

truncate table table_name;    操作特性:   truncate 只删除表中的所有数据,不删除表的结构;    truncate 是ddl操作立即生效,原数据不放到rollback segment中,不能回滚.,操作不触发trigger.;    truncate 语句缺省情况下将空间释放到 minextents个 extent,除非使用reuse storage;    truncate 会将高水线复位(回到最开始)。 2. 选择最有效率的表名顺序(只在基于规则的优化器中有效) 3. WHERE子句中的连接顺序 4. SELECT子句中避免使用 ‘ * ‘ 5 ...
对于第一个参数的处理,call和apply都是一样的,但第二个参数稍有不同,call的第二个参数是可变长参数,而apply的第二个参数是数组,就像这样: myFn.call({},var1,var2...); myFn.apply({},[var1,var2]); <html> <head> <title>MyHtml.html</title> <script type="text/javascript" defer="defer"> function my ...
JavaScript通过两次取非过滤的元素: 0,false,null,undefined,"",NaN 任意一个对象,通过两次取非,都会得到一个布尔值 比如一下都是true: alert(!!Object); alert(!!{}); alert(!!1); 以下都是false: alert(!!0); alert(!!false); ......
http://code.google.com/p/swiftdao/

JAVA加密解密示例

    博客分类:
  • JAVA
可用于URL传入汉字作为参数时,发生乱码的情况 import java.io.UnsupportedEncodingException; public class Encode { public static final String ALLOWED_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.!~*'()"; public static String encode(String str){ String enstr ...
Global site tag (gtag.js) - Google Analytics