• 关于

    SQL*Loader

    的搜索结果

问题

如何用Ajax传递一个对象集合到jsp页面。

我想在我的web项目(struts2+hibernate)的首页的页面输出数据库的News这个表的内容,请问具体的代码是怎样的,我都快点疯了。 附我自己写的代码,及供参考,可忽略 在servlet中: public void getNews...
杨冬芳 2019-12-01 20:16:11 1391 浏览量 回答数 1

问题

Hibernate的一对多自关联?报错

/* * Copyright 2008-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "...
爱吃鱼的程序员 2020-06-14 16:00:10 0 浏览量 回答数 1

问题

一个关于Javaweb网页跳转的问题

一下是我的代码 Insert.java package com.Servlet; import java.io.IOException; import javax.servlet.ServletException; import ...
爵霸 2019-12-01 19:23:09 1451 浏览量 回答数 1

万券齐发助力企业上云,爆款产品低至2.2折起!

限量神券最高减1000,抢完即止!云服务器ECS新用户首购低至0.95折!

问题

一个关于Javaweb网页跳转的问题?报错

一下是我的代码 Insert.java package com.Servlet; import java.io.IOException; import javax.servlet.ServletException; imp...
爱吃鱼的程序员 2020-06-09 16:06:52 0 浏览量 回答数 1

问题

关于Hibernate discriminator标签的问题?报错

定义"一棵对象继承树对应一个表"的映射表的时候,对于discriminator标签在xml文件中的位置有什么特殊的要求么? 如果这样子定义的话会报错:      <...
爱吃鱼的程序员 2020-06-22 17:03:01 0 浏览量 回答数 1

问题

druid SQL合并配置报错?报错

@wenshao 你好,想跟你请教个问题:druid SQL合并配置报错,我配置了合并sql <bean id="stat-filter" class="...
爱吃鱼的程序员 2020-06-22 18:44:35 0 浏览量 回答数 1

问题

hibernate4 org.hibernate.MappingExceptio?报错

spring4 +hibernate4  如果addEntity 那么就会报错,但是不添加是不会报错的,我的猜测是没有加载到映射文件,但是不知道怎么验证. 望大神帮忙,先谢谢了 session.createSQLQu...
爱吃鱼的程序员 2020-06-08 21:28:51 0 浏览量 回答数 1

问题

分页问题,点击上一页首页没报错,但点击下一页尾页报错。hibernate4 db2?报错

数据库是db2 9.7      hibernate4    点击分页上一页或首页没问题,但点击下一页或最后一页就报错。 Hibernate: select tsuserstb0_.USERID as USERID1_1...
爱吃鱼的程序员 2020-06-09 16:39:05 0 浏览量 回答数 1

问题

关于JDBC连接SQL 2008的一些问题??报错

代码如下:      import java.sql.*; public class ShowSql { public static void main(String[] args) { Stri...
爱吃鱼的程序员 2020-06-07 18:10:02 0 浏览量 回答数 1

问题

我用servlet做增删修改,遇到问题,求解~~~~~~?报错

这是报错 四月 05, 2016 3:44:14 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/...
爱吃鱼的程序员 2020-06-09 16:09:42 0 浏览量 回答数 1

回答

我测试最新版本是好的,你升级到最新版本druid-1.0.8吧 http://repo1.maven.org/maven2/com/alibaba/druid/1.0.18/<!--druid--><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>1.0.18</version></dependency>我已经用1.0.18了 @wenshao 这是我的service @Override   publicDatagriddatagrid(Userstbuserstb){      Datagriddg=newDatagrid();      Stringhql="fromTsUserstbt";      StringtotalHql="selectcount(*)"+hql;      List<TsUserstb>ltu=tsUserstbDao.find(hql,userstb.getPage(),userstb.getRows());      List<Userstb>lu=newArrayList<Userstb>();      if(ltu!=null&&ltu.size()>0){         for(TsUserstbt:ltu){            Userstbu=newUserstb();            BeanUtils.copyProperties(t,u);            lu.add(u);         }      }      dg.setTotal(tsUserstbDao.count(totalHql));      dg.setRows(lu);      returndg;   } 这是dao publicList<T>find(Stringhql,intpage,introws){      Queryq=this.getCurrentSession().createQuery(hql);      returnq.setFirstResult((page-1)*rows).setMaxResults(rows).list();   } over(orderbyorderofinner2_)这个语法比较奇怪。 不过这个应该只是logerror,不影响运行吧。 很奇怪com.alibaba.druid.sql.parser.ParserException:syntaxerror,errorin:'ascfetchfirst20rowsonly',expectFETCH,actualFETCHfetch嗯,运行是不影响的。但这个错误看起来很难过。我把这个语句单独在db2上执行没有报错的。看起来确实很奇怪 @wenshao Hibernate:selecttsuserstb0_.USERIDasUSERID1_1_,tsuserstb0_.CREASTAFasCREASTAF2_1_,tsuserstb0_.CREATIMEasCREATIME3_1_,tsuserstb0_.LOCORGNOasLOCORGNO4_1_,tsuserstb0_.PWDMODIFYTIMEasPWDMODIF5_1_,tsuserstb0_.REMARK01asREMARK6_1_,tsuserstb0_.REMARK02asREMARK7_1_,tsuserstb0_.STAORGNOasSTAORGNO8_1_,tsuserstb0_.UPDASTAFasUPDASTAF9_1_,tsuserstb0_.UPDATIMEasUPDATIM10_1_,tsuserstb0_.USERNAMEasUSERNAM11_1_,tsuserstb0_.USERPWDasUSERPWD12_1_,tsuserstb0_.USERSTATEasUSERSTA13_1_fromTS_USERSTBtsuserstb0_orderbytsuserstb0_.USERIDascfetchfirst20rowsonly[com.alibaba.druid.filter.stat.StatFilter]mergesqlerror,dbTypedb2,sql:selecttsuserstb0_.USERIDasUSERID1_1_,tsuserstb0_.CREASTAFasCREASTAF2_1_,tsuserstb0_.CREATIMEasCREATIME3_1_,tsuserstb0_.LOCORGNOasLOCORGNO4_1_,tsuserstb0_.PWDMODIFYTIMEasPWDMODIF5_1_,tsuserstb0_.REMARK01asREMARK6_1_,tsuserstb0_.REMARK02asREMARK7_1_,tsuserstb0_.STAORGNOasSTAORGNO8_1_,tsuserstb0_.UPDASTAFasUPDASTAF9_1_,tsuserstb0_.UPDATIMEasUPDATIM10_1_,tsuserstb0_.USERNAMEasUSERNAM11_1_,tsuserstb0_.USERPWDasUSERPWD12_1_,tsuserstb0_.USERSTATEasUSERSTA13_1_fromTS_USERSTBtsuserstb0_orderbytsuserstb0_.USERIDascfetchfirst20rowsonlycom.alibaba.druid.sql.parser.ParserException:syntaxerror,errorin:'ascfetchfirst20rowsonly',expectFETCH,actualFETCHfetch   atcom.alibaba.druid.sql.parser.SQLParser.printError(SQLParser.java:232)   atcom.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:407)   atcom.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:145)   atcom.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:140)   atcom.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:53)   atcom.alibaba.druid.filter.stat.StatFilter.mergeSql(StatFilter.java:145)   atcom.alibaba.druid.filter.stat.StatFilter.createSqlStat(StatFilter.java:630)   atcom.alibaba.druid.filter.stat.StatFilter.statementPrepareAfter(StatFilter.java:305)   atcom.alibaba.druid.filter.FilterEventAdapter.connection_prepareStatement(FilterEventAdapter.java:124)   atcom.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448)   atcom.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.prepareStatement(ConnectionProxyImpl.java:342)   atcom.alibaba.druid.pool.DruidPooledConnection.prepareStatement(DruidPooledConnection.java:331)   atorg.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:159)   atorg.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:183)   atorg.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:157)   atorg.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1881)   atorg.hibernate.loader.Loader.executeQueryStatement(Loader.java:1858)   atorg.hibernate.loader.Loader.executeQueryStatement(Loader.java:1838)   atorg.hibernate.loader.Loader.doQuery(Loader.java:906)   atorg.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)   atorg.hibernate.loader.Loader.doList(Loader.java:2550)   atorg.hibernate.loader.Loader.doList(Loader.java:2536)   atorg.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2366)   atorg.hibernate.loader.Loader.list(Loader.java:2361)   atorg.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:495)   atorg.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:357)   atorg.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:198)   atorg.hibernate.internal.SessionImpl.list(SessionImpl.java:1230)   atorg.hibernate.internal.QueryImpl.list(QueryImpl.java:101)   athx.dao.base.Impl.BaseDaoImpl.find(BaseDaoImpl.java:127)   athx.service.sysmanage.Impl.TsUserstbServiceImpl.datagrid(TsUserstbServiceImpl.java:81)   atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)   atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   atjava.lang.reflect.Method.invoke(Method.java:597)   atorg.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)   atorg.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)   atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)   atorg.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)   atorg.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)   atorg.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)   atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)   atorg.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)   atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)   atorg.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)   atcom.sun.proxy.$Proxy22.datagrid(UnknownSource)   athx.action.TsUserstbAction.datagrid(TsUserstbAction.java:83)   atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)   atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   atjava.lang.reflect.Method.invoke(Method.java:597)   atognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)   atognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)   atognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)   atcom.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)   atcom.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)   atognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)   atognl.ASTMethod.getValueBody(ASTMethod.java:90)   atognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)   atognl.SimpleNode.getValue(SimpleNode.java:258)   atognl.Ognl.getValue(Ognl.java:494)   atognl.Ognl.getValue(Ognl.java:458)   atcom.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)   atcom.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)   atcom.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)   atcom.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)   atcom.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)   atorg.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)   atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)   atorg.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)   atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)   atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)   atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)   atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atcom.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)   atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)   atorg.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)   atorg.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)   atorg.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)   atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)   atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)   atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)   atorg.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)   atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)   atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)   atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)   atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)   atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)   atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)   atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)   atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)   atorg.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)   atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)   atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)   atorg.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)   atorg.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)   atorg.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)   atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)   atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)   atjava.lang.Thread.run(Thread.java:662)Hibernate:selectcount(*)ascol_0_0_fromTS_USERSTBtsuserstb0_
爱吃鱼的程序员 2020-06-09 16:39:22 0 浏览量 回答数 0

问题

求大神帮忙我启动时就报错这是怎么回事??报错

五月 25, 2016 9:53:32 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library...
爱吃鱼的程序员 2020-06-09 14:22:42 0 浏览量 回答数 1

问题

Spring hibernate jpa 加ehcache缓存问题?报错

项目框架为spring hibernate jpa 现在我要加缓存 <!-- JPA实体管理工厂的配置 --> <bean id="entityManagerFactory" ...
爱吃鱼的程序员 2020-06-14 16:28:31 0 浏览量 回答数 1

问题

Hibernate不会在Spring应用程序中自动创建表

我试图运行Spring-Hibernate应用程序,但是Hibernate不想从实体创建表。我得到: 2020-03-13 19:39:25.995 WARN 6740 --- [n...
montos 2020-03-26 19:01:56 0 浏览量 回答数 1

问题

spring jdbcTemplate注入失败,抱No bean named '?报错

各位帮忙看一下,这是报错信息: 三月 28, 2014 10:10:01 上午 org.apache.catalina.core.StandardContext listenerStart 严重: Except...
爱吃鱼的程序员 2020-06-22 11:16:17 0 浏览量 回答数 1

问题

MySQL Infobright 数据仓库快速安装笔记? 400 报错

MySQL Infobright 数据仓库快速安装笔记? 400 报错 [文章作者:张宴 本文版本:v1.1 最后修改:2010.05.18 转载请注明原文链接:http://blo...
爱吃鱼的程序员 2020-05-30 21:41:23 0 浏览量 回答数 1

问题

java.lang.NoClassDefFoundError:mysql数据库连接驱动

我试图运行简单的代码与mysql连接。我正在使用eclipse和tomcat。我在库中添加了mysql-connector-java-8.0.1.9.jar: 库-> mysql-> mysql-connecto...
montos 2020-03-22 15:01:44 11 浏览量 回答数 3

问题

Spring+hibernate+druid配置报错?报错

软件版本 Spring3.2.4、hibernate-4.2.5?、druid-0.2.26 配置如下 xml: <?xml version="1.0" encoding=&...
爱吃鱼的程序员 2020-06-22 15:38:47 0 浏览量 回答数 1

问题

Spring+hibernate+druid配置报错:报错

软件版本 Spring3.2.4、hibernate-4.2.5?、druid-0.2.26 配置如下 xml: <?xml version="1.0" encoding=&...
kun坤 2020-06-06 22:49:32 0 浏览量 回答数 1

问题

Spring+hibernate+druid配置报错 - java报错

软件版本 Spring3.2.4、hibernate-4.2.5?、druid-0.2.26 配置如下 xml: <?xml version="1.0" encoding=&...
montos 2020-05-31 09:29:19 0 浏览量 回答数 1

问题

Spring+hibernate+druid配置报错403.10 禁止访问:配置无效 

软件版本 Spring3.2.4、hibernate-4.2.5?、druid-0.2.26 配置如下 xml: <?xml version="1.0" encoding="UTF-8...
kun坤 2020-05-27 20:03:28 5 浏览量 回答数 1

问题

javaweb问题,eclipse启动Tomcat时老是错误。搞的头大,请教大牛?报错

十一月 28, 2014 8:30:34 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native librar...
爱吃鱼的程序员 2020-06-14 19:52:58 0 浏览量 回答数 1

回答

错误是啥?回复<aclass='referer'target='_blank'>@王瑞平:主键问题?就是我的hbn有问题?是否需要添加些什么?<idname="id"type="java.lang.Integer"><columnname="id"/><generatorclass="native"/></id><atarget='_blank'>@exa主键的问题,可能是数据类型问题我添加了控制台的图片和action中的代码希望可以把问题描述清楚些谢谢你的回复啊!程序运行但是点击第二页或者第三页后myeclipse跳出throwJDBCExceptionHelper.convert错误(不是出现在控制台的报错是myeclipse跳转到的loader.class文件中然后高亮此错误)不能运行查询第二页或者第三页hql语句 从控制台输出来看问题出现在waterInfoFacade.findBook(page, 10);这个方法,代码需要贴出来看看 您好我把代码贴出来了waterInfoDAO.findAllPage方法在上面也贴出来了这是方法的代码 DAO中的代码已上面贴出<preclass="brush:java;toolbar:true;auto-links:false;">publicObject[]findBook(Integerpage,Integermax){//设置总页数IntegerpageNum=0;if(waterInfoDAO.findAll().size()%max==0){pageNum=waterInfoDAO.findAll().size()/max;}else{pageNum=waterInfoDAO.findAll().size()/max+1;}List<WaterInfo>list=waterInfoDAO.findAllPage(max*(page-1),max);//将总页数和查出的List放到O中Object[]o=newObject[2];o[0]=pageNum;o[1]=list;returno;} 初步判定是findAllBook方法的问题,你用以下代码试试: <preclass="brush:java;toolbar:true;auto-links:false;">Sessionsession=getHibernateTemplate().getSessionFactory().openSession();QueryqueryObject=session.createQuery(queryString);queryObject.setFirstResult(first);queryObject.setMaxResults(max);Listlist=queryObject.list();releaseSession(session);returnlist; 改了以后试了一下还是这样会不会是我的application有问题?我在下面贴出来了 application.xml 会不会是这个有问题  <preclass="brush:java;toolbar:true;auto-links:false;"><?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.0.xsd"><!--定义数据源--><beanid="dataSource"class="org.springframework.jdbc.datasource.DriverManagerDataSource"destroy-method="close"><!--指定连接数据库驱动--><propertyname="driverClassName"value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/><!--指定连接数据库url--><propertyname="url"value="jdbc:microsoft:sqlserver://localhost:1433"/><!--指定连接数据库用户名,密码为空--><propertyname="username"value="sa"/><propertyname="password"value="sa"/></bean><!--定义Hibernate的sessionFactory--><beanid="sessionFactory"class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><!--指定数据源--><propertyname="dataSource"ref="dataSource"/><!--指定Hibernate映射文件--><propertyname="mappingResources"><list><value>sunyang/domain/LiberInfo.hbm.xml</value><value>domain/mayday/MayInfo.hbm.xml</value><value>domain/stationinfo/StationInfo.hbm.xml</value><value>domain/userinfo/UserInfo.hbm.xml</value><value>domain/maintaininfo/MaintainInfo.hbm.xml</value><value>domain/itemsetting/ItemInfo.hbm.xml</value><value>domain/data/DataInfo.hbm.xml</value><value>domain/water/WaterInfo.hbm.xml</value><value>domain/function/FunctionInfo.hbm.xml</value></list></property><propertyname="hibernateProperties"><props><!--指定使用方言--><propkey="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop><!--是否在控制台输出sql语句--><propkey="show_sql">false</prop><propkey="hibernate.hbm2ddl.auto">update</prop><propkey="hibernate.jdbc.batch_size">20</prop></props></property></bean><!--定义事务管理--><beanid="transactionManager"class="org.springframework.orm.hibernate3.HibernateTransactionManager"><propertyname="sessionFactory"ref="sessionFactory"/></bean><!--定义事务管理拦截器--><beanid="transactionInterceptor"class="org.springframework.transaction.interceptor.TransactionInterceptor"><propertyname="transactionManager"ref="transactionManager"/><propertyname="transactionAttributes"><props><propkey="get*">PROPAGATION_REQUIRED,readOnly</prop><propkey="*">PROPAGATION_REQUIRED</prop></props></property></bean><!--定义代理自动管理事务--><beanid="ProxyCreator"class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"><!--指定需要Spring管理事务的Bean--><propertyname="beanNames"><list><value>sysLiberInfoFacade</value><value>mayInfoFacade</value><value>stationInfoFacade</value><value>userInfoFacade</value><value>maintainInfoFacade</value><value>itemInfoFacade</value><value>dataInfoFacade</value><value>waterInfoFacade</value><value>functionInfoFacade</value></list></property><!--调用事务管理拦截器--><propertyname="interceptorNames"><list><value>transactionInterceptor</value></list></property></bean><!--把DAO注入session工厂--><beanid="liberInfoDAO"class="sunyang.dao.LiberInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="mayInfoDAO"class="dao.mayday.MayInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="stationInfoDAO"class="dao.stationinfo.StationInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="userInfoDAO"class="dao.userinfo.UserInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="maintainInfoDAO"class="dao.maintaininfo.MaintainInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="itemInfoDAO"class="dao.itemsetting.ItemInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="dataInfoDAO"class="dao.data.DataInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="waterInfoDAO"class="dao.water.WaterInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><beanid="functionInfoDAO"class="dao.function.FunctionInfoDAOImpl"><propertyname="sessionFactory"><reflocal="sessionFactory"/></property></bean><!--把service注入给DAO--><beanid="sysLiberInfoFacade"class="sunyang.service.SysLiberInfoFacadeImpl"><propertyname="liberInfoDAO"ref="liberInfoDAO"></property></bean><beanid="mayInfoFacade"class="service.mayday.MayInfoFacadeImpl"><propertyname="mayInfoDAO"ref="mayInfoDAO"></property></bean><beanid="stationInfoFacade"class="service.stationinfo.StationInfoFacadeImpl"><propertyname="stationInfoDAO"ref="stationInfoDAO"></property></bean><beanid="userInfoFacade"class="service.userinfo.UserInfoFacadeImpl"><propertyname="userInfoDAO"ref="userInfoDAO"></property></bean><beanid="maintainInfoFacade"class="service.maintaininfo.MaintainInfoFacadeImpl"><propertyname="maintainInfoDAO"ref="maintainInfoDAO"></property></bean><beanid="itemInfoFacade"class="service.itemsetting.ItemInfoFacadeImpl"><propertyname="itemInfoDAO"ref="itemInfoDAO"></property></bean><beanid="dataInfoFacade"class="service.data.DataInfoFacadeImpl"><propertyname="dataInfoDAO"ref="dataInfoDAO"></property></bean><beanid="waterInfoFacade"class="service.water.WaterInfoFacadeImpl"><propertyname="waterInfoDAO"ref="waterInfoDAO"></property></bean><beanid="functionInfoFacade"class="service.function.FunctionInfoFacadeImpl"><propertyname="functionInfoDAO"ref="functionInfoDAO"></property></bean><!--把Action注入给service--><beanname="/back/sysLiberInfo"class="sunyang.webtier.SysLiberInfoAction"><propertyname="sysLiberInfoFacade"ref="sysLiberInfoFacade"></property></bean><beanname="/mayInfo"class="sunyang.webtier.MayInfoAction"><propertyname="mayInfoFacade"ref="mayInfoFacade"></property></bean><beanname="/back/stationInfo"class="sunyang.webtier.StationInfoAction"><propertyname="stationInfoFacade"ref="stationInfoFacade"></property></bean><beanname="/back/userInfo"class="sunyang.webtier.UserInfoAction"><propertyname="userInfoFacade"ref="userInfoFacade"></property></bean><beanname="/back/maintainInfo"class="sunyang.webtier.MaintainInfoAction"><propertyname="maintainInfoFacade"ref="maintainInfoFacade"></property></bean><beanname="/back/itemInfo"class="sunyang.webtier.ItemInfoAction"><propertyname="itemInfoFacade"ref="itemInfoFacade"></property></bean><beanname="/back/dataInfo"class="sunyang.webtier.DataInfoAction"><propertyname="dataInfoFacade"ref="dataInfoFacade"></property></bean><beanname="/back/waterInfo"class="sunyang.webtier.WaterInfoAction"><propertyname="waterInfoFacade"ref="waterInfoFacade"></property></bean><beanname="/back/functionInfo"class="sunyang.webtier.FunctionInfoAction"><propertyname="functionInfoFacade"ref="functionInfoFacade"></property></bean></beans>
爱吃鱼的程序员 2020-06-22 19:14:12 0 浏览量 回答数 0
阿里云企业服务平台 陈四清的老板信息查询 上海奇点人才服务相关的云产品 爱迪商标注册信息 安徽华轩堂药业的公司信息查询 小程序定制 上海微企信息技术相关的云产品 国内短信套餐包 ECS云服务器安全配置相关的云产品 天籁阁商标注册信息 开发者问答 阿里云建站 自然场景识别相关的云产品 万网 小程序开发制作 视频内容分析 视频集锦 代理记账服务 北京芙蓉天下的公司信息查询