spring
坐看花开
这个作者很懒,什么都没留下…
展开
-
CXF 开发webService的步骤(java First)
定义一个接口,用来定义提供服务。写一个类实现上一步骤定义的接口。在接口、接口实现类上添加注解@WebService例子如下: a.定义接口@WebService(name="quoteUpdater", targetNamespace="http://cxf.apache.org", wsdlLocation= "http原创 2012-07-04 11:45:57 · 484 阅读 · 0 评论 -
xfire整合spring时引入的servlet
xfire不整合spring时,使用org.codehaus.xfire.transport.http.XFireConfigurableServletxfire整合spring时,使用org.codehaus.xfire.spring.XFireSpringServlet原创 2012-07-11 09:14:13 · 640 阅读 · 0 评论 -
The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
在xml的beans中添加 xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd原创 2012-07-11 09:13:48 · 2951 阅读 · 0 评论 -
org.springframework.jdbc.core.JdbcTemplate
org.springframework.jdbc.core.JdbcTemplate类在spring框架jdbc包里org.springframework.jdbc-3.1.1.RELEASE.jar原创 2012-07-11 09:13:20 · 4253 阅读 · 0 评论 -
nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor 的原因是缺少jar包jar包名字 aopalliance.jar原创 2012-07-11 09:13:12 · 547 阅读 · 0 评论 -
Struts2 + Spring Action注入问题探讨
Struts2的Action需要注入Servcie时是否交给了Spring管理。 答案很难讲通常在Action中配置@Component @Scope(“prototype”) 但是后来发现不配置也可。Action中的setter们不加@Resource 也可以(只要名子跟spring中Bean的名字一样就能被注入)Action具体创建者应该是那个plugin插件,创建时候原创 2012-06-26 14:48:09 · 378 阅读 · 0 评论 -
xfire使用注解的方式发布webService
例子环境:spring + hibernate + xfire1.在 spring的配置文件中加入如下代码2. 在要发布的类的接口上添加 @WebService(targetNamespace="XXXXX.xxxxxx.xxxxx")targetNamespace 表示服务的命名空间3.在接口实现类上加注原创 2012-07-04 11:46:05 · 1577 阅读 · 0 评论 -
spring log4j mongodb 关闭debug日志输出
配置上mongodb之后总是不停输出 Updating cluster description to 。。。。。。。。 信息研究了一下关闭方法,配置如下:log4j配置文件中添加 log4j.logger.org.mongodb.driver=OFF原创 2016-09-08 17:03:38 · 12513 阅读 · 2 评论