- 浏览: 169071 次
- 性别:
- 来自: 厦门
最新评论
-
liuborama:
System.out.println(Math ...
Math.round()和Math.floor() -
KevinGarnett:
正遇到这问题,楼主解释的非常好 谢谢
当return遇到finally
文章列表
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 {
t ...
Java获取spring注解bean
- 博客分类:
- spring
获取注释方式(Annotaction)的bean
WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext());
TestService testService= (TestService) wac.getBean("TestService");
获取ApplicationContext.xml中的bean
BeanFactory factory = new ClassPathXml ...
转载自新浪博客: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 start
LSNRCTL for 32-bit Wind ...
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," ...
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
* @d ...
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 ...
以读取XML方式的导入Excel
例如有表A(字段为ID,NAME),有两条记录
表B(字段为ID,NAME),有三条记录 当表A连接表B时,
select * from A a left join B b on a.name=b.name;
结果产生3条记录(所以用连接的时候要注意连接的字段是否有重复):
未加颜色设置前: { fieldLabel: '所属城市 ' name:'regionName', columnWidth: 0.5, }
加入样式设置:
{ fieldLabel: '所属城市 ', fieldStyle:'background-color: #DFE9F6;border-color: #DFE9F6; background-image: none;' name:'regionName', columnWidth: 0.5, }
POI单元格数据类型匹配
- 博客分类:
- JAVA
/**
* 设置单元格值
* @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);
Patt ...
报错内容:
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.serv ...
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" ...
table动态添加行和列
- 博客分类:
- html
<script language="javascript">
var table = document.getElementById("table_id");
var tr = table.insertRow();
for(var i=0; i<4; i++){
var td = tr.insertCell(i);
td.innerText = i;
}
</script>
做了根据数据库数据显示一个大区-省-市-区四级级联关系的例子
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" conten ...