youchengLin的博客
youchengLin · 共 47 篇文章
用Soap调用webservice接口
package com.my.test; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; public class WebserviceAxis { public static void main(String args) throws Exception { try { // 命名空…
2015-06-29 14:51 · 评论(0)
Java获取spring注解bean
获取注释方式(Annotaction)的bean WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext()); TestService testService= (TestService) wac.getBean("TestService"); 获取ApplicationContext.xml中的bean BeanFactory factory = new ClassPathXmlApplicationContext("classpath…
2015-06-12 17:13 · spring · 评论(0)
Oracle监听启动后又自动停止的问题及解决<转载>
转载自新浪博客: http://blog.sina.com.cn/s/blog_4abe7f3a0100pz9x.html **系统:**windows 2003 Enterprise Server **oracle版本:**oracle 10g **安装目录:**D:\oracle **症状:**启动监听的时候自动停止,Oracle服务正常启动 解决方法: **1)**Net Configuration Assitant中删除LISTENER,再重新添加。此时服务中找不到OracleOraDb10g_home1TNSListener服务项。 **2)**cmd中运行命令 lsnrctl s…
2015-01-17 14:33 · 评论(0)
把下划线式变量转换成驼峰式变量
package com.ways.app.dpca.utils; public class TestTransform { public static void main(String[] args) { String s = "manf,"+ "brand,"+ "car_series,"+ "old_version_code,"+ "model_name,"+ "msrp,"+ "segment,"+ "launch_date,"+ "emissions,"+ "transmission,"+ "year,"+ "mon,"+ "mix,"+ "wholesale,"+ "avg_tp,…
2014-08-11 10:03 · JAVA · 评论(0)
java自定义工具类方法
package com.ways.app.dpca.utils; import java.math.BigDecimal; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 公用类 * @author linyoucheng * @date 2014-1-14 * @co…
2014-08-11 10:02 · 评论(0)
A fatal error has been detected by the Java Runtime Enviro
Myeclipse中启动一个项目(项目过大、架构不合理,加载其他项目都正常)会报如下错误: An unrecoverable stack overflow has occurred. # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x62d5bd47, pid=6172, tid=3452 # # JRE version: 6.0_45-b06 # Java VM: Java HotSpot(TM) Cli…
SLQ left join副表中有重复数据时,连接后的结果会出现重复
例如有表A(字段为ID,NAME),有两条记录 表B(字段为ID,NAME),有三条记录 当表A连接表B时, select * from A a left join B b on a.name=b.name; 结果产生3条记录(所以用连接的时候要注意连接的字段是否有重复):
2014-06-28 16:55 · SQL · 评论(0)
EXTJS 设置文本框背景色和边框颜色
未加颜色设置前: { fieldLabel: '所属城市 ' name:'regionName', columnWidth: 0.5, } 加入样式设置: { fieldLabel: '所属城市 ', fieldStyle:'background-color: #DFE9F6;border-color: #DFE9F6; background-image: none;' name:'regionName', columnWidth: 0.5, }
2014-05-21 10:46 · 评论(0)
POI单元格数据类型匹配
/** * 设置单元格值 * @param wb * @param cell * @param sale */ public static void setBodyCellValue(HSSFWorkbook wb,HSSFCell cell,String sale){ CellStyle style = cell.getCellStyle(); Pattern p = Pattern.compile("^\\d+$"); Matcher matcher = p.matcher(sale); Pattern p2 = Pattern.compile("^[-]?\\d+[.]{1}\\d+[…
2014-03-27 20:09 · JAVA · 评论(0)
net.sf.json.JSONException: JSON does not allow non-finite numbers
报错内容: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is net.sf.json.JSONException: JSON does not allow non-finite numbers at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) at org.springframework.web.servle…
2013-10-22 11:17 · JAVA · 评论(0)
Extjs open
Ext.require(['*']); Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider')); //菜单模型 var model = Ext.define("TreeModel", { // 定义树节点数据模型 extend : "Ext.data.Model", fields : [ {name : "id", type : "string"}, {name : "text", type : "string"},…
2013-10-08 18:14 · javascript · 评论(0)
table动态添加行和列
2013-07-16 23:51 · html · 评论(0)
html table行合并
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!--<link rel="stylesheet" type="text/css" href="./styles.css">--> <tr> <td width= "25% "rowspan="9"> 华南 </…
2013-07-12 14:12 · html · 评论(0)