文件名称: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