炯炯有妖
2017-02-13 03:33
采纳率: 100%
浏览 1.2k
已采纳

java初学MyEclipse_maven搭建web项目测试dao接口报错

[org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring.xml]
[org.springframework.context.annotation.ClassPathBeanDefinitionScanner]JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
[org.springframework.context.annotation.ClassPathBeanDefinitionScanner]JSR-330 'javax.inject.Named' annotation found and supported for component scanning
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring-hibernate.xml]
[org.springframework.context.support.GenericApplicationContext]Refreshing org.springframework.context.support.GenericApplicationContext@680a6131: startup date [Mon Feb 13 10:55:44 CST 2017]; root of context hierarchy
[org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]Loading properties file from class path resource [config.properties]
[org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor]JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@537b20c6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,userDao,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,sessionFactory,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
[com.alibaba.druid.pool.DruidAbstractDataSource]maxIdle is deprecated
[com.alibaba.druid.pool.DruidDataSource]{dataSource-1} inited
[org.hibernate.annotations.common.Version]HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
[org.hibernate.Version]HHH000412: Hibernate Core {4.2.5.Final}
[org.hibernate.cfg.Environment]HHH000206: hibernate.properties not found
[org.hibernate.cfg.Environment]HHH000021: Bytecode provider name : javassist
[org.hibernate.dialect.Dialect]HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
[org.hibernate.engine.transaction.internal.TransactionFactoryInitiator]HHH000399: Using default transaction strategy (direct JDBC transactions)
[org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory]HHH000397: Using ASTQueryTranslatorFactory
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[org.hibernate.tool.hbm2ddl.SchemaUpdate]HHH000228: Running hbm2ddl schema update
[org.hibernate.tool.hbm2ddl.SchemaUpdate]HHH000102: Fetching database metadata
[org.hibernate.tool.hbm2ddl.SchemaUpdate]HHH000396: Updating schema
[org.hibernate.tool.hbm2ddl.TableMetadata]HHH000261: Table found: ssh_test.users
[org.hibernate.tool.hbm2ddl.TableMetadata]HHH000037: Columns: [id, sex, username, address, age, name, password]
[org.hibernate.tool.hbm2ddl.TableMetadata]HHH000108: Foreign keys: []
[org.hibernate.tool.hbm2ddl.TableMetadata]HHH000126: Indexes: [age, primary]
[org.hibernate.tool.hbm2ddl.SchemaUpdate]HHH000232: Schema update complete
[org.springframework.orm.hibernate4.HibernateTransactionManager]Using DataSource [{
CreateTime:"2017-02-13 10:55:44",
ActiveCount:0,
PoolingCount:1,
CreateCount:1,
DestroyCount:0,
CloseCount:2,
ConnectCount:2,
Connections:[
{ID:337257430, ConnectTime:"2017-02-13 10:55:45", UseCount:2, LastActiveTime:"2017-02-13 10:55:46"}
]
}] of Hibernate SessionFactory for HibernateTransactionManager
[org.springframework.context.support.GenericApplicationContext]Closing org.springframework.context.support.GenericApplicationContext@680a6131: startup date [Mon Feb 13 10:55:44 CST 2017]; root of context hierarchy
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@537b20c6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,userDao,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,sessionFactory,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
[com.alibaba.druid.pool.DruidDataSource]{dataSource-1} closed

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • Z. ZHANG 2017-02-13 04:00
    已采纳

    Failed to load class "org.slf4j.impl.StaticLoggerBinder".这个 Placing one (and only one) of slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem. 应该是jar冲突 难道你加了log4j的jar然后又加了logback的jar?
    [org.hibernate.cfg.Environment]HHH000206: hibernate.properties not found这个之前有问过的。有说是高版本的hibernate必须加一个属性文件,不知道是不是,他说是试着加个空的属性文件试试

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • 炯炯有妖 2017-02-13 03:38

    初学java,一看到Console里面的信息头就疼了,不知道怎么排查,求大大们教一教!!

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题