![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
备忘短代码
intrejj
这个作者很懒,什么都没留下…
展开
-
sqlserver的换行问题
制表符: CHAR(9)换行符: CHAR(10)回车符: CHAR(13)如: print 'a'+CHAR(10)+'b'结果为:ab如果想输出文本,则 select 'a'+CHAR(13)+CHAR(10)+'b'必须是CHAR(13)+CHAR(10),不是CHAR(10)+CHAR(13),因为文本中的是{CF}{CL},回车,换行...原创 2011-09-20 20:29:10 · 479 阅读 · 0 评论 -
Spring如何讀取Properties文件的配置?
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>/WEB原创 2011-10-25 08:41:31 · 114 阅读 · 0 评论 -
HIbernate與不支持boolean的數據庫之間的映射
1.JPA本身是不支持boolean。可以用Hibernater自带的标签.修改如下.@Column(name = "manager_log") @org.hibernate.annotations.Type(type="yes_no")private boolean manageLog = false; // 能否管理系统日志2.当然你也可以不用Hibernat...原创 2011-10-31 18:50:12 · 104 阅读 · 0 评论 -
JAVA中Main函數之注意
Problem?Whats this syntax useful for : **function(String... args)**Is this same as writing **function(String[] args)**with difference only while invoking this method or is there...原创 2011-12-23 16:40:58 · 54 阅读 · 0 评论 -
类型检查(RTTI与反射机制)转载
类型检查(RTTI与反射机制)1、类型时类型识别(run-timetype identification,RTTI):当之有一个指向对象的引用时,RTTI可以让你找出这个对象的确切类型。2、Java运行时识别对象和类的信息,主要有俩种方式:1).一种是“传统“RTTI...原创 2012-02-02 10:35:48 · 73 阅读 · 0 评论 -
如何在web.xml文件中引入其他的xml文件(web.xml如何拆分)
如何在web.xml文件中引入其他的xml文件 为了便于以后拆分,于是想到将web.xml文件中的servlet和servlet-mapping能够从web.xml脱离出来,用其他xml文件保存然后在web.xml文件中引入这些文件,就想类似引入struts.config一样。 具体做法...原创 2011-11-14 20:08:27 · 579 阅读 · 1 评论 -
用VBS实现拖动文件便替换特殊字符
Set args = WScript.Arguments Set fs = CreateObject("Scripting.FileSystemObject") If args.Count = 0 Then MsgBox "You called this script directly, no arguments specified!" Else ...原创 2012-02-09 17:41:01 · 255 阅读 · 0 评论 -
Java浮点型数据控制精度DecimalFormat
可以用以下的类:java.text.DecimalFormat df=new java.text.DecimalFormat( "#.## "); String tem = df.format(3.1415);原创 2012-02-22 17:17:08 · 118 阅读 · 0 评论 -
ResultSet 参数設置使用實例
public static String[][] getFunctionUser(String functionID) { Connection con = null; Statement stmt = null; ResultSet rs = null; String[][] returnArray = null; try { con = SimpleSer...原创 2012-02-23 14:32:40 · 78 阅读 · 0 评论