SSH整合出现的一些问题

来源:互联网 发布:mac 游戏排行 编辑:程序博客网 时间:2024/05/29 03:35
      

    No tests found matching 【junit 异常】  我是重新编译了一下就好了 。

       org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-public.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mappingLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:com/zking/entity/*.hbm.xml]: class path resource [com/zking/entity/] cannot be resolved to URL because it does not exist
这个错是我配置sessionFactory里面的加载映射文件写错了



  tomcat报错org.springframework.web.context.ContextLoaderListener找不到。   我这里是忘记加载struts2整合Spring的整合包了

       <!-- struts2整合Spring的整合包 -->
    <dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-spring-plugin</artifactId>
        <version>2.5.12</version>
    </dependency>


java.lang.NoClassDefFoundError: Lorg/apache/logging/log4j/Logger;     没有加载log4j包

<dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.8.2</version>
    </dependency>
 



原创粉丝点击