zoukankan      html  css  js  c++  java
  • 异常分析

        编写程序不要以太长为主。异常分析以提示来进行查找确认。

        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-config-mybatis.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 'mapperLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:sql/*.xml]: class path resource [sql/] cannot be resolved to URL because it does not exist

        根据提示去看部署路径下是否有sql文件夹,sql文件夹下是否有文件

        idea maven编译web项目后需要package后去tomcat部署以避免有资源问题未拷贝导致的异常。

  • 相关阅读:
    dubbo 学习
    JSTL 实现 为Select赋多个值
    Spring MVC 单元测试Demo
    IDEA git commit push revert
    高并发处理
    Redis Expire TTL命令
    Redis 原子操作INCR
    Redis 安装
    慢日志查询
    angularJs 处理多选框(checkbox)
  • 原文地址:https://www.cnblogs.com/freedommovie/p/5756090.html
Copyright © 2011-2022 走看看