-
aspectj 引来通知 实例
aspectj引入通知实例 你懂的 packagecom.meiyoudao.service; publicinterfaceBuyPersonService{ publicvoidbuySomebody(); } packagecom.meiyoudao.service; publicinterfaceBuyPersonBySexService{ publicvoidbuyPer...
786
热度 -
AOP切不了,该怎么处理
AOP切不了Javacode<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
95
热度 -
springMVC调整hibernate配置出错
springMVC整合hibernate配置出错web.xml:<welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list> <servlet> <servlet-name>spring</servlet-name> ...
56
热度 -
spring 事宜 不回滚
spring事务不回滚spring配置文件如下:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:jee="http://www...
425
热度 -
替java_web项目添加spring_MVC框架(JSTL表达式)
为java_web项目添加spring_MVC框架(JSTL表达式) 为javaweb项目添加springMVC框架今天花了点时间将之前整理的springMVC项目的搭建做了下笔记,也把之前的做的个Demo一起放上来,给学习springMVC框架的朋友一个引导吧!接下来我们就开始吧:1. 添加spring类库(如下图所示):在这里我们添加了Spring2.5CoreLibraries、Spring...
106
热度 -
有错吗?运行提示:can't find the declaration of element beans"该怎么处理
有错吗?运行提示:can'tfindthedeclarationofelementbeans"<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://wwww.w3.org/2001/XMLS...
8186
热度 -
dataSource配置dbcp 为什么tomcat起动时会抛出找不到c3p0
dataSource配置dbcp为什么tomcat启动时会抛出找不到c3p0我的applicationContext里面明明配置的是dbcp,tomcat启动的时候为什么会提示找不到c3po2015-3-1814:21:41org.springframework.web.context.ContextLoaderinitWebApplicationContext严重:Contextinitiali...
81
热度 -
大牛请进解决思路
大牛请进前段时间一直忙着测试,这两天,老大又要我搞起单点登录,实在头疼,但是问题总得解决,鄙人脸皮比较厚,上次已经发过一帖了,但是没有得到实质性的解决。希望能有大牛能够指点迷津。我的需求是,两个应用,分别是a.csdn.com和csdn.com两个域名,两个应用都有独立ip.也都有各自的服务器,一个是安装版的tomcat服务器和一个免安装版的tomcat服务器。登录时,两个应用分别有独立的登录页面...
67
热度 -
The method getHibernateTemplate() is undefined for the type XX,该如何解决
ThemethodgetHibernateTemplate()isundefinedforthetypeXXXMLcode<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:a...
618
热度 -
ibatis+spring 注入的DAO总是空指针,该怎么解决
ibatis+spring注入的DAO总是空指针这是applicationContextv.xmlXMLcode<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi=&q...
304
热度 -
@Aspect引语不生效
@Aspect注解不生效!<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springfram...
24
热度 -
Spring+Struts调整找不到指定的Action方法
Spring+Struts整合找不到指定的Action方法?在做一个Spring+Struts的程序。总是提示找不到指定的方法。在Spring中是使用cglib创建代理的。Struts.xml中也指定了要使用Sping来创建管理对象。++++++++++++++Struts.xml===================HTMLcode<?xmlversion="1.0"e...
7994
热度 -
spring整合struts2 action注入失败 空指针
spring整合struts2action注入失败空指针求助啊昨天刚刚搭好的今天一看竟然空指针了spring配置<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSche...
9157
热度 -
【请问】Struts2交给Spring管理后 出现的有关问题
【请教】Struts2交给Spring管理后出现的问题我的是问题是当我JSP提交过去的时候发现在我的LoginAction里面取不到JSP页面上的参数难道是我的Spring配置错了么希望大家指点谢谢直接上代码Spring配置文件:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework....
2754
热度 -
spring注解式事务加在方法下失败,求人指点
spring注解式事务加在方法上失败,求人指点!在service方法上加入了@Transactional(readOnly=false,propagation=Propagation.REQUIRED,rollbackFor=Exception.class)使得方法加载不到了。。不知道是少哪里原因,以下spring配置文件Javacode<beansxmlns="http://ww...
2950
热度 -
spring form交付对象数组
springform提交对象数组 在日常的B/S开发中,经常遇到添加像主从表的数据到数据库,我以前的做法是先获取主表的信息,封装到bean,然后读取从表的信息在controller中封装到bean的子对象中。然后提交后台业务逻辑处理。在用到spring2.5的mvc后,我想直接通过配置好bean,然后spring把页面数据装入bean中。举例:数据表:orderhist(订单主表),orderde...
364
热度 -
mybatis3+spring 3+ext js调整套路
mybatis3+spring3+extjs整合套路 mybatis3+spring3+extjs整合套路,可以小结一下.先来看mybatis3及模型层1首先是MODEL层,比如对于用户管理先来个user.java,是个POJO2再搞一个persisten层,存放mybatis3的mapper接口和文件,注意把它们都放入一个包中,比如 publicinterfaceUserMapper{ Lon...
484
热度 -
怎样写XSD资料4
怎样写XSD文件4 根<myElementhello="string必填"world="string选填"><?xmlversion="1.0"encoding="UTF-8"?><xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema"elementFormDefault="qualified"attributeFor...
73
热度 -
debian上安装和配置ldap及phpldapadmin
debian下安装和配置ldap及phpldapadmin 1.安装ldap安装slapd以及相关ldap工具#apt-getinstallslapdldap-utils2.编辑配置文件vim/etc/ldap/slapd.conf??(个人比较喜欢vim,vi用着总不习惯)########################################################includ...
221
热度 -
myeclipse中spring配置文件输入揭示配置
myeclipse中spring配置文件输入提示配置解决方法:一、点击“Windows"到“Preferences"到"MyEclipse"到"FilesandEditors"到"XML",然后到"XMLCatalog”;二、点击窗口右边的"UserSpecifiedEntris",然后单击"Add",会弹出配置窗口;三、弹出窗口中,在“Location"上,选中"FilesSystems..."...
20
热度