我从书上copy了一个将用户注册信息保存到数据库的程序,可是启动服务器后现了debug,帮我看看这是什么意思呢?用的是struts框架。运行程序后数据仍然未保存至数据库中。
2015-01-23 15:46:12,727 [localhost-startStop-1] DEBUG [org.springframework.web.context.support.XmlWebApplicationContext] - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@2aa05bc3: defining beans [usersDao,usersService,usersAction,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,baseMapper]; root of factory hierarchy?
你给的信息不包括关键的错误信息。而你在什么都不懂的情况下胡乱拷贝了些代码,代码不能工作的可能性又很多。这个只有你学会了如何调试和编程之后才能解决了。
你程序中设置了断点没有啊
struts 版本很多,现在 webinf 里面如果有struts.xml 那是struts2版本,否则struts-config.xml 就是 struts1