springMVC+mybatis 启动报错

简简单单陪你续写快乐 2017-03-20 02:26:06
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CGDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\CGDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FWDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\FWDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'KGDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\KGDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'landDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\LandDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\UserDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.beans.factory.support.AbstractBeanFactory] - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'YLDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\YLDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
[WARN][RMI TCP Connection(3)-127.0.0.1][2017-03-20 14:19:52][org.springframework.context.support.AbstractApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'landController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bis.ssm.service.LandService com.bis.ssm.controller.LandController.landService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.bis.ssm.service.LandService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CGDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\CGDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FWDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\FWDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\project\BIS\target\web-ssm\WEB-INF\classes\mapping\CGMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property geom
...全文
176 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_32154601 2017-03-21
  • 打赏
  • 举报
回复
CGDao这个类有问题
街头小贩 2017-03-21
  • 打赏
  • 举报
回复
Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CGDao' defined in file [E:\project\BIS\target\web-ssm\WEB-INF\classes\com\bis\ssm\dao\CGDao.class]:
部署说明 项目启动后,在浏览器中访问地址:http://127.0.0.1:8080/personnel/ 我录了一个视频来演示一下,人事管理系统部署视频链接:https://www.bilibili.com/video/av53594307/ 基础环境:JDK8,Tomcat8,MySQL5.7 报错可以查看我的教程:我的教程 加入了普通用户的功能,在登陆时可以选择,可以查询职位,部门,公告,文档,但不能对其他的进行修改。使用JavaEE开发,基于SpringMVC+Mybatis框架,该项目包含了用户管理、部门管理、职位管理、员工管理、公告管理、下载中心等多个模块,页面使用JQuery框架完成动态功能,用户管理、部门管理等模块包含了项目开发中常用的增删改查动作,下载中心包含了 Spring MVC的文件上传、下载等功能。 系统功能介绍 用户管理的功能包括:添加用户,用户可以为管理员或者普通用户;查询用户,可以查询所有用户或根据用户名和用户状态进行模糊查询,删除用户,修改用户。 部门管理的功能包括:添加部门,查询部门,可以查询所有部门或根据部门名称进行模糊查询,删除部门,修改部门 职位管理的功能包括:添加职位,查询职位,可以查询所有职位或根据职位名称进行模糊查询,删除职位,修改职位 员工管理的功能包括:添加员工,查询员工,可以查询所有员工或根据员工姓名,身份证号,手机号,性别,职位,部门进行模查询,删除员工,修改员工。 公告管理的功能包括:添加公告,查询公告,可以查询所有公告或根据公告名称,公告内容进行模糊查询,删除公告,修改公告。 下载中心的功能包括:上传文件,查淘文件,可以查询所有文件或根据文件标题进行模糊查询,预览文件内容:删除文件,下载文件。
基于SpringMVC+Spring+MyBatis开发的个人博客网站-毕业设计.zip 一、关于项目 该博客是基于SSM实现的个人博客系统,适合初学SSM和个人博客制作的同学学习。主要技术架构包括Maven、SpringMVC、Spring、MyBatis、Thymeleaf、Redis等。前端采用Bootstarp和Semantic UI。 二、使用步骤 Fork项目 fork或者下载项目到本地(建议先fork到自己仓库,在通过码云导入仓库下载,实测下载速度可以)。完整项目源码,可以使用IDEA导入。数据库文件请先创建数据库,然后以运行sql文件方式导入 导入数据库 新建数据库blog,导入数据库blog.sql。注意,数据库的编码和排序规则是utf-8和utf-8_general_ci。数据库默认用户名 root,密码 123456 启动redis服务,并在redis.properties配置你的redis 修改项目中的数据库连接信息 修改 db.properties 文件,该文件很容易找到,在 src/main/resources 中。里面有 MySQL 数据库连接信息,请确保已安装和启动 MySQL。注意修改数据库地址、表名、用户名和密码。 db.properties 文件中databasePath表示每周日进行数据库备份的路径,可自行修改 后台sql文件中管理员账户为admin,密码为:111111 三、使用注意 开发工具的选择 请使用 IntelliJ IDEA, 尽量不要用 Eclipse/MyEclipse。后者可能要折腾一会儿 确保你安装了 Maven(如果maven加载pom报错,发现不是自己配置的maven,请到setting中修改成自己的maven仓库) 本项目有使用到redis,所以运行项目前先启动redis服务,并在redis.properties配置你的redis 请给你的IDE安装Lombok插件 实体类中多次使用到 @Data 注解,请确保你的 IDE 安装了 Lombok 插件,否则找不到 getter/setter 方法 数据库乱码,在MySQL安装路径,比如(E:\MySQL\MySQL Server 5.5)下找到my.ini文件进入编辑,修改这两处地方为utf8,默认是拉丁文 character-set-server=utf8 default-character-set=utf8 本项目使用到的mail服务可在mail.properties中配置,不配置的话不影响整体,只是使用不了邮件服务。 本项目原本使用的是阿里云oss服务,现已修改成图片上传到本地服务器,如果需要可以在db.properties中进行阿里云配置 二、效果预览 预览地址:https://islizx.cn 前台效果图就不展示了,可前往网站浏览 介绍几张后台的页面 后台首页 DashBoard 文章列表 编辑文章(MarkDown编辑器) 文章类型管理 页面管理(可以自定义页面,申请友链和留言板即为自定义页面) 公告管理 附件管理(点击附件可以查看详细信息以及删除操作) 评论管理(管理员回复回收站和待审核的评论后直接通过审核并发送邮件给评论者) 轮播图管理(即首页的轮播图,轮播图可另外链接到其它页面,比如文章或公告) 小工具管理(即首页右侧的bar) 友链管理 日志管理

10,606

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧