private ParentDao parent;(get ,set 省略)
public void run() {
else if(data[1]==19){
sd=new UploadInfo();
sd.setDetectorNum(data[6]);
re.add(sd);
for(int i=7;i<7+11*data[6];i+=11){
sd=new UploadInfo();
sd.setDetectorId(data[i]);
sd.setDetectorAveSpeed(data[i+1]);
sd.setDetectorFlow(data[i+2]+data[i+3]*0x100);
sd.setDetectorShare(data[i+4]);
sd.setDetectorTrafficDensity(data[i+5]);
sd.setDetectorAveCarLength(data[i+6]);
sd.setDetectorAveHeadway(data[i+7]);
sd.setDetectorLargeVehiclesRatio(data[i+8]);
sd.setDetectorMiddleVehiclesRatio(data[i+9]);
sd.setDetectorSmallVehiclesRatio(data[i+10]);
re.add(sd);
parent.save(re.get(0));(一到这里就报错,这里是连接数据库的,在spring配置文件里依赖注入) }
}
public void run() {
else if(data[1]==19){
sd=new UploadInfo();
sd.setDetectorNum(data[6]);
re.add(sd);
for(int i=7;i<7+11*data[6];i+=11){
sd=new UploadInfo();
sd.setDetectorId(data[i]);
sd.setDetectorAveSpeed(data[i+1]);
sd.setDetectorFlow(data[i+2]+data[i+3]*0x100);
sd.setDetectorShare(data[i+4]);
sd.setDetectorTrafficDensity(data[i+5]);
sd.setDetectorAveCarLength(data[i+6]);
sd.setDetectorAveHeadway(data[i+7]);
sd.setDetectorLargeVehiclesRatio(data[i+8]);
sd.setDetectorMiddleVehiclesRatio(data[i+9]);
sd.setDetectorSmallVehiclesRatio(data[i+10]);
re.add(sd);
parent.save(re.get(0));(一到这里就报错,这里是连接数据库的,在spring配置文件里依赖注入) }
}
解决方案 »
- j2ee开发过程中问题--修改了servlet后,run结果并不显示修改后的结果
- 求java大牛帮忙解答2
- struts框架中的titles框架问题 在线等!!!
- spring好麻烦啊!尤其是jdbc那块看不懂。。。。
- jasper下通过语句打印静态报表
- 求救!哪位高人帮我解答一下,关于JSP+SQL SERVER 2000的编程问题
- 急问:用jdbc与sqlserver连接时出现的问题?
- 学j2ee要看懂2套代码--谁有即可以得高分
- ConverterHome.class,这是什么 意思?(ConverterHome是EJB的HOME接口)
- 我的反转排序错在哪儿 大神们帮帮忙
- Hibernate链接Oracle 数据库 出错如下
- The prefix "aop" for element "aop:config" is not bound.
at casia.isiteam.netservice.net.core.DataTask.run(DataTask.java:71)
at java.lang.Thread.run(Thread.java:619)