java笔记:自己动手写javaEE框架(三)(四)

2014-11-24 03:03:08 · 作者: · 浏览: 3
testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ] 2011-10-13 11:17:36 TransactionalTestExecutionListener - Began transaction (1): transaction manager [org.springframework.jdbc.datasource.DataSourceTransactionManager@6db33c]; rollback [false] 测试开始.... 进入到了方法拦截器。。。。 调用的service: cn.com.sharpxiajun.service.impl.UsersServiceImpl@23bdd1 调用的方法: public abstract java.util.List cn.com.sharpxiajun.service.UsersService.queryUsersList(java.util.Map) throws java.lang.Exception 参数是: {username=sharpxiajun} 2011-10-13 11:17:36 Connection - {conn-100000} Connection 2011-10-13 11:17:36 Connection - {conn-100000} Preparing Statement: select t.username,t.password,t.enabled from users t where t.username = 2011-10-13 11:17:36 PreparedStatement - {pstm-100001} Executing Statement: select t.username,t.password,t.enabled from users t where t.username = 2011-10-13 11:17:36 PreparedStatement - {pstm-100001} Parameters: [sharpxiajun] 2011-10-13 11:17:36 PreparedStatement - {pstm-100001} Types: [java.lang.String] |statement| select t.username,t.password,t.enabled from users t where t.username = 'sharpxiajun' 返回结果是: [] 拦截器执行结束!! [] 测试结束!! |commit| 2011-10-13 11:17:36 TransactionalTestExecutionListener - Committed transaction after test execution for test context [[TestContext@1fac852 testClass = UsersServiceImplTest, locations = array<String>['classpath:conf/applicationContext.xml'], testInstance = cn.com.sharpxiajun.junittest.service.UsersServiceImplTest@1758cd1, testMethod = testQueryUserList@UsersServiceImplTest, testException = [null]]] 2011-10-13 11:17:36 GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@2808b3: startup date [Thu Oct 13 11:17:35 CST 2011]; root of context hierarchy 2011-10-13 11:17:36 DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1de17f4: defining beans [usersDao,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,propertyConfigurer,myDataSource,sqlMapClient,sqlMapClientTemplate,transactionManager,methodServiceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,baseServiceMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0]; root of factory hierarchy

看到了这句话了吧|statement| select t.username,t.password,t.enabled from users t where t.username = 'sharpxiajun' ,ok,写完了。

总结下了:java框架的dao和service这块写完了,这个系列下一篇是针对前三篇的技术要点做一下比较详细的解释,做程序不仅要知其然还要知其所以然,这样才能提高。不过下面的博文我会回到java script,加固一下java script我在学习中感觉比较难理解的基础知识,之后要继续研究jquery了,这个才是我的重点

作者:夏天的森林