-
java札记
java笔记 1、线程 protectedvoidprocess() { ExecutorServiceexecutorService; //开10个线程 executorService=Executors.newFixedThreadPool(10); //来一批数据,提交一个线程 executorService.submit(newRunnable() { @Override publicvo...
326
热度 -
那位高手指导一下,JEMAIL 如何使用?多谢,下面是JEMAIL代码
那位高手指导一下,JEMAIL怎么使用??谢谢,下面是JEMAIL代码<%'-----------------------------------'---EMAIL邮件处理类模块'---Copyright(c)2004Aspsky,Inc.'---Mail:Sunwin@artbbs.nethttp://www.aspsky.net'---2004-1...
92
热度 -
[求助]spring+hibernate出了错误!
[求助]spring+hibernate出了错误! HTTPStatus500-typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjavax.servlet.ServletE...
412
热度 -
There is no statement named User.login in this SqlMap. 让小弟我很莫名
ThereisnostatementnamedUser.logininthisSqlMap.让我很莫名com.ibatis.sqlmap.client.SqlMapException:ThereisnostatementnamedUser.logininthisSqlMap.SqlMapConfig.xml代码如下:<?xmlversion="1.0"encoding="UTF-8"?>...
182
热度 -
getCurrentSession步骤为什么报错了!
getCurrentSession方法为什么报错了!!在整理springMVC+hibernate。配置好了,在dao中使用注入:@ResourceprivateSessionFactorysessionFactory;protectedSessiongetSession(){ System.out.println(sessionFactory); returnsessionFactory.get...
37
热度 -
spring 引文配置
spring注解配置1.spring.xml文件配置<?xmlversion="1.0"encoding="UTF-8"?> <beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/...
295
热度 -
单机情况上怎么配置实用hibernate
单机情况下如何配置实用hibernate?开发环境为JDK1.7+Hibernate3.5.3hibernate.cfg.xml配置如下:<?xmlversion='1.0'encoding='utf-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD3.0//EN""...
95
热度 -
org.hibernate.HibernateException:Could not parse configuration/hibernate.cfg.xml解决办法
org.hibernate.HibernateException:Couldnotparseconfiguration/hibernate.cfg.xml初学hibernate配置文件都是自己写的下面是错误信息:org.hibernate.HibernateException:Couldnotparseconfiguration:/hibernate.cfg.xml atorg.hibernate...
435
热度 -
Hibernate后执行报错:Livell.UploadImage is not 地图ped ,是否哪里配置错了
Hibernate后执行报错:Livell.UploadImageisnotmapped,是否哪里配置错了Uploadimage.hbm.xml----------------------------------<hibernate-mapping><classname="com.hycrm.bean.Uploadimage"table="LIVEL...
64
热度 -
spring3+hibernate4 出现的一个有关问题
spring3+hibernate4出现的一个问题错误是这样的:当我单独测试dao的时候,会报错:NoSessionfoundforcurrentthread但是把到加入到service时,再测试,就没问题配置文件如下:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/s...
219
热度 -
急ssh开发中spring 事务管理出现Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)解决思路
急!!!ssh开发中spring事务管理出现Writeoperationsarenotallowedinread-onlymode(FlushMode.NEVER/MANUAL)网上说要在spring中设置对openseesioninviewfilter的管理,我设了可是为什么还是不行呢。先把applicationContext发给大家看看帮帮忙!!Javacode<?xmlversion=...
537
热度 -
用hibernate连接两个数据库,该怎么处理
用hibernate连接两个数据库hibernate只是用来连接数据库的,没有其它操作,现在想从别的服务器上搜点数据,不会用hibernate配置了开始是hibernate.cfg.xml<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-...
50
热度 -
springMVC3.0+hibernate3.0缓存有关问题
springMVC3.0+hibernate3.0缓存问题请问一下,我使用springMVC3.0+hibernate3.0框架,现在使用JS做一个仿照QQ农场的应用,农场的状态是查询数据库数据,并根据当前时间来改变农场植物状态并更新到数据库中。现在的问题就是,改变了农场状态,更新到数据库中后,我对页面进行刷新,农场的状态有可能会恢复到没更新之前的状态,再刷新又可能是出现更新后的状态。我试过在de...
8
热度 -
高分求求解!数据源的有关问题
高分求求解!数据源的问题小弟所用技术:spring+struts2+JdbcTemplate,开发环境:windows;服务器环境:ubuntu。数据源配置:<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close"...
41
热度 -
急spring、struts2+jdbc 事务不回滚,该如何处理
急急急,spring、struts2+jdbc事务不回滚代码:spring-dao.xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEbeansPUBLIC"-//SPRING//DTDBEAN//EN""http://www.springframework.org...
268
热度 -
问一个spring的有关问题
问一个spring的问题XMLcode<beanid="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"><val...
32
热度 -
No bean class specified on bean definition,该如何处理
Nobeanclassspecifiedonbeandefinition<?xmlversion="1.0"encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3....
363
热度 -
整合SSH出现的No bean named '/addUser' is defined异常
整合SSH出现的Nobeannamed'/addUser'isdefined错误我的spring配置<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="h...
26
热度 -
struts Hibernate模式開發出現的問題解决方案
strutsHibernate模式開發出現的問題log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).log4j:WARNPleaseinitializethelog4jsystemproperly.org.hibernate.HibernateException:/hibernate.cfg.xmlno...
15
热度 -
Connections could not be acquired from the underlying database异常
Connectionscouldnotbeacquiredfromtheunderlyingdatabase错误查询几次后就出现这个问题了,我的配置文件为:<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurati...
677
热度