ssm框架
启动后报错
内容如下

[RMI TCP Connection(2)-127.0.0.1] WARN  org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext.refresh():551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'enterpriseController': Unsatisfied dependency expressed through field 'enterpriseService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'enterpriseServiceImpl': Unsatisfied dependency expressed through field 'enterpriseDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterpriseDao' defined in file [/Users/magicya/workspace/dayou/sms-manage/SMS-MANAGE-SINGLE/target/SMS-MANAGE-SINGLE/WEB-INF/classes/com/datau/mcd/dao/enterprise/EnterpriseDao.class]: Cannot resolve reference to bean 'logSqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logSqlSessionTemplate' defined in class path resource [com/datau/mcd/conf/SmsCommonMysqlDataSource.class]: Unsatisfied dependency expressed through method 'logSqlSessionTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logSqlSessionFactory' defined in class path resource [com/datau/mcd/conf/SmsCommonMysqlDataSource.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'logSqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/Users/magicya/workspace/dayou/sms-manage/SMS-MANAGE-SINGLE/target/SMS-MANAGE-SINGLE/WEB-INF/classes/mapper/template/TemplateMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'java.util.String'.  Cause: java.lang.ClassNotFoundException: Cannot find class: java.util.String

最后发现是因为 mapper.xml 里的sql有问题,
parameterType="java.util.String"
应该为 java.lang.String

转载于:https://www.cnblogs.com/magicya/p/10645290.html

springboot启动出错,相关推荐

  1. springboot启动报错:Unregistering JMX-exposed beans on shutdown

    环境 1,maven 3.5.0 2,eclipse 4.7.1 3,spring boot 1.5.9.RELEASE springboot启动报错 按照spring 用户手册创建新的spring ...

  2. springboot启动原理及其流程

    springboot启动原理精简版 spring,springMVC和spring有什么区别? 一 springboot启动流程及其相关流程概览. 二 springboot的启动类入口 三 sprin ...

  3. SPRINGBOOT启动流程及其原理

    Spring Boot.Spring MVC 和 Spring 有什么区别? 分别描述各自的特征: Spring 框架就像一个家族,有众多衍生产品例如 boot.security.jpa等等:但他们的 ...

  4. 本地启动出错Unable to start ServletWebServerApplicationContext due to miss ServletWebServerFactory bean

    Springboot项目打包成war上传到云服务器后,本地启动出错. 首先,我们去除为了上传云服务器所添加的步骤,详细见我的另一篇文章Springboot项目部署到阿里云服务器(war和jar) 然后 ...

  5. SpringBoot2 | SpringBoot启动流程源码分析(一)

    首页 博客 专栏·视频 下载 论坛 问答 代码 直播 能力认证 高校 会员中心 收藏 动态 消息 创作中心 SpringBoot2 | SpringBoot启动流程源码分析(一) 置顶 张书康 201 ...

  6. SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean

    SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...

  7. SpringBoot 启动流程(细节拉满)

    SpringBoot 启动流程(细节拉满) 网上搜了一下,这方面网上的资料不少,有些从@SpringBootApplication来入手讲.个人不能苟同吧,讲一讲我的理解.还有一些讲的比较笼统,我来写 ...

  8. Springboot启动原理解析

    点击上方"方志朋",选择"置顶公众号" 技术文章第一时间送达! 我们开发任何一个Spring Boot项目,都会用到如下的启动类 @SpringBootAppl ...

  9. 手把手带你剖析 Springboot 启动原理!

    作者:平凡希 cnblogs.com/xiaoxi/p/7999885.html 我们开发任何一个Spring Boot项目,都会用到如下的启动类 @SpringBootApplication pub ...

最新文章

  1. Android存储方式之SQLite
  2. 去java文件 注释_去除java文件中注释部分
  3. 软件测试与开发专业就业方向,学习软件测试后就业方向有哪些?
  4. linux内核源码剖析 博客,【Linux内存源码分析】页面迁移
  5. 动态添加input_前端提效必备:动态模版生成
  6. linux如何重置网络,Ubuntu 重新设置网络
  7. 关于调试,很大的感触,请看下面的c程序
  8. 老路MBA商学课|第002课:比较优势|我做的比你好,就应该我做吗?
  9. #4017. 复制粘贴(copypaste)
  10. Nginx if语句配置多重判断
  11. winvnc3.3.3连接就关闭
  12. Logitech G系鼠标脚本编程,实现鼠标自动定位控制
  13. CSP 201512-4 送货
  14. Python - 装机系列30 AMD4650g+华擎A520+光威内存条3200MHZ频率设置
  15. python字典的遍历方式:向列表一样通过索引遍历字典的值
  16. 22.23.24.25.盒须图(boxplot)、棉棒图(Stem Plot; Lollipop plot)、极坐标图、雷达图(Radar Chart)
  17. 如何将base64转化为图片
  18. 小程序用vue开发可以吗,vue直接开发小程序
  19. 计算机电缆设计规范,《GB50217-2016 电力工程电缆设计规范》.pdf
  20. ippicv_2017u2_lnx_intel64_20170418.tgz 下载

热门文章

  1. 在loadrunner中使用winsocket协议编写脚步三部曲
  2. [Android] 环境配置之Android Studio开发NDK
  3. GDI+ 学习记录(27): Bitmap
  4. KVM 标准化安装文档
  5. H3CNE考试讨论群
  6. (一).NET SubSonic2.0 的配置
  7. 击败安全系统系列文章之突破卡巴6
  8. jupyterlab debugger+显示图片
  9. 命令 —— awk内置变量(NF,NR,FS,FILENAME)
  10. Quartus16.1布线优化选择,重编译可能会满足时序