Struts2+Spring3+MyBatis3完整实例

时间:2014-07-04 05:02:52
【文件属性】:

文件名称:Struts2+Spring3+MyBatis3完整实例

文件大小:8.19MB

文件格式:RAR

更新时间:2014-07-04 05:02:52

Struts2 Spring3 MyBatis3 实例

网上的东西好大多都不能直接用,自己结合网上资料做了一个Struts2+Spring3+MyBatis3的测试工程,JUnit测试用例和WEB服务。 内涵完整jar包,解压直接可用,包括一个表文件。 Eclipse3.2+Tomcat/5.5+jdk1.5.0_17 - The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Java\jre1.5.0_17\bin;.; - Initializing Coyote HTTP/1.1 on http-8080 - Initialization processed in 562 ms - Starting service Catalina - Starting Servlet Engine: Apache Tomcat/5.5.27 - XML validation disabled - Initializing Spring root WebApplicationContext - Root WebApplicationContext: initialization started - Refreshing Root WebApplicationContext: startup date [Tue Jun 14 11:08:28 CST 2011]; root of context hierarchy - Loading XML bean definitions from file [E:\Eclipse_C\workspace\MyStrutsTest\WebRoot\WEB-INF\classes\applicationContext-beans.xml] - JSR-330 'javax.inject.Named' annotation found and supported for component scanning - Overriding bean definition for bean 'accountBizImpl': replacing [Generic bean: class [com.hoo.biz.impl.AccountBizImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [E:\Eclipse_C\workspace\MyStrutsTest\WebRoot\WEB-INF\classes\com\hoo\biz\impl\AccountBizImpl.class]] with [Generic bean: class [com.hoo.biz.impl.AccountBizImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [E:\Eclipse_C\workspace\MyStrutsTest\WebRoot\WEB-INF\classes\applicationContext-beans.xml]] - Loading XML bean definitions from file [E:\Eclipse_C\workspace\MyStrutsTest\WebRoot\WEB-INF\classes\applicationContext-common.xml] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7d503: defining beans [accountBizImpl,accountDaoImpl,baseMapperDaoImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,accountBiz,dataSource,sqlSessionFactory,transactionManager,baseTransactionProxy,org.mybatis.spring.mapper.MapperScannerConfigurer#0,accountMapper,baseSqlMapper]; root of factory hierarchy - Loaded JDBC driver: com.mysql.jdbc.Driver - Root WebApplicationContext: initialization completed in 1734 ms - Parsing configuration file [struts-default.xml] - Parsing configuration file [struts-plugin.xml] - Parsing configuration file [struts.xml] - Initializing Struts-Spring integration... - Setting autowire strategy to name - ... initialized Struts-Spring integration successfully - Initializing Spring FrameworkServlet 'dispatcher' - FrameworkServlet 'dispatcher': initialization started - Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Tue Jun 14 11:08:32 CST 2011]; parent: Root WebApplicationContext - Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher.xml] - JSR-330 'javax.inject.Named' annotation found and supported for component scanning - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5a936b: defining beans [accountBizImpl,accountDaoImpl,baseMapperDaoImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,handlerMapping,handlerAdapter]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7d503 - FrameworkServlet 'dispatcher': initialization completed in 531 ms - org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] - ContextListener: contextInitialized() - SessionListener: contextInitialized() - ContextListener: contextInitialized() - SessionListener: contextInitialized() - Starting Coyote HTTP/1.1 on http-8080 - JK: ajp13 listening on /0.0.0.0:8009 - Jk running ID=0 time=0/32 config=null - Find registry server-registry.xml at classpath resource - Server startup in 5329 ms


【文件预览】:
account.sql
MyStrutsTest.rar

网友评论

  • 值得学习的好东西
  • 很好,学习力,适合初学者
  • 还行能运行
  • 还可以,谢谢分享
  • 还行吧!下载下来,大概看了下,还没运行
  • 行吧,可以参考看看
  • 不错的例子,学习参考
  • 可以使用,但我记得mybatis可以不使用dao,直接使用接口
  • 不错的例子
  • 下载下来,查看一下,有点乱。得自己耐心配置一下
  • 还行吧,但web.xml里面什么都没有,还要自己配置!
  • 挺不错的资源
  • 挺好用的。,能跑的起来
  • 还行吧,我想看工程量大点的,这个配置文件可以参考参考
  • 可以用,自己改吧改吧
  • 没有类库,还要一个个下载jar,有点麻烦!
  • 下载下来,web.xml里面什么都没有,还要自己配置!太麻烦了!
  • 可以运行,
  • 很好,很有帮助
  • 非常好的,都是我需呀的
  • 挺好用的,已经找好久了,架包很全
  • 下载下来了,可为什么解压出错了
  • 就是没有类库,还要一个个下载,这样有点麻烦。
  • hoojo博客的源码实现,还不错的,学习了
  • 可以运行,不错 .
  • 有参考价值,挺好
  • 很好的例子 很清晰
  • 当入门了解
  • 挺好的,XML配置的,定下
  • lib包基本都全的,这个挺好的。建议使用