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

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必须加一个属性文件,不知道是不是,他说是试着加个空的属性文件试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 MAX9296A+MAX96717,美信gmsl解串有人做过吗?
  • ¥15 求帮我解决一下inode 爆满的问题(有偿)
  • ¥15 关于#vscode#的问题:布料滤波算法中C++实现pcl在Vscode中pcl库没有#include <pcl>
  • ¥15 fpga:ov5640采集tft显示
  • ¥100 python怎么连接wxSQLite3加密的数据库
  • ¥20 创建taro项目,在vscode上能够写跨平台写微信小程序代码
  • ¥15 网站出现错误跳转问题
  • ¥15 Docker容器里已经安装了ssh,但打包迁移到新机器一直容器一直提示unrecognized service。
  • ¥15 综合布线实例设计,就好看好看不恐怖可好滤镜好聚
  • ¥15 使用moviepy库视频合并时出错