
Spring
imlmy
这个作者很懒,什么都没留下…
展开
-
maven创建web工程Spring配置文件找不到问题解决方案
使用maven创建web工程,将Spring配置文件applicationContext.xml放在src/resource下,用eclipse编译时提示class path resource [applicationContext.xml] cannot be opened because it does not exist错误。但是用mvn clean package命令编译时成功的。web.原创 2012-12-06 10:06:31 · 37796 阅读 · 9 评论 -
使用maven创建Struts2+Spring工程
使用命令行创建Struts2+Spring工程,使用命令如下mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=MyProject -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter提示Failed原创 2012-12-07 16:57:53 · 3052 阅读 · 2 评论 -
spring aop版本问题
通过spring aop创建一个拦截器,applicationContext.xml文件配置如下helloWorldActionSpringAOPIntercepter其中SpringIntercepter是拦截器类,实现MethodBeforeAdvice。在发布到tomcat时出现nested exception is java.la原创 2012-12-11 18:55:10 · 2411 阅读 · 0 评论 -
Spring aop拦截器
今天加班,搞定了用spring拦截器捕获其他bean异常。功能比较简单,主要是之前对spring拦截器不熟悉,导致出现问题搞了半天才解决。新建一个自定义的Advice类MyAdvice实现ThrowsAdvice接口的afterThrowing方法。然后再applicationContext.xml中配置拦截器。 mybean myadvice 运原创 2013-03-16 17:51:37 · 3019 阅读 · 1 评论