最近想搭一个 shiro+ssm的快速开发框架,用于后台管理以及微信公众号的开发。后台主要是权限管理,于是选择有spring+shiro,微信公众号的前端页面搜了下有用velocity开发的,刚好看到群里有人说 springWind,就尝试了下;

http://git.oschina.net/juapk/SpringWind

从git上面下载后,等待依赖包。。。  相当的慢。 等了一晚上。

之后按照正常的步骤,配置,启动,然后报错了:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logAspect' defined in class path resource [spring/spring-framework.xml]: Cannot create inner bean 'com.baomidou.springwind.service.impl.SysLogServiceImpl#7c7defb9' of type [com.baomidou.springwind.service.impl.SysLogServiceImpl] while setting bean property 'logPoint'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.baomidou.springwind.service.impl.SysLogServiceImpl#7c7defb9': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysLogMapper' defined in file [F:\workspace\SpringWind\SpringWind\target\SpringWind\WEB-INF\classes\com\baomidou\springwind\mapper\SysLogMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [F:\workspace\SpringWind\SpringWind\target\SpringWind\WEB-INF\classes\spring\app-datasource.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.ibatis.session.Configuration.getDefaultScriptingLanguageInstance()Lorg/apache/ibatis/scripting/LanguageDriver;

查询了缺少的类是mybatis的,按说是不应该缺少的啊!  应该是缺少jar包或者jar包起冲突了。这样想着,于是把默认的mybatis的4.2换成了4.4

还是不行,郁闷了。再自己检查了下pom.xml文件,发现里面有jdk1.6而本机用的jdk1.8,赶紧换了。再次重启,总是不报错了。。。

org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'logAspect' defined in class path resource 
[spring/spring-framework.xml]: Cannot create inner bean 
'com.baomidou.springwind.service.impl.SysLogServiceImpl#7c7defb9' of type 
[com.baomidou.springwind.service.impl.SysLogServiceImpl] while setting 
bean property 'logPoint'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 
'com.baomidou.springwind.service.impl.SysLogServiceImpl#7c7defb9': 
Unsatisfied dependency expressed through field 'baseMapper'; nested 
exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'sysLogMapper' defined in file [F:\workspace
\SpringWind\SpringWind\target\SpringWind\WEB-INF\classes\com\baomidou
\springwind\mapper\SysLogMapper.class]: Unsatisfied dependency expressed 
through bean property 'sqlSessionFactory'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'sqlSessionFactory' defined in file [F:\workspace
\SpringWind\SpringWind\target\SpringWind\WEB-INF\classes\spring\app-
datasource.xml]: Invocation of init method failed; nested exception is 
java.lang.NoSuchMethodError: 
org.apache.ibatis.session.Configuration.getDefaultScriptingLanguageInstan
ce()Lorg/apache/ibatis/scripting/LanguageDriver;

2)初次搭建的时候,按照作者的提示,需要配置host。如果不想配置host,可以这样:

修改配置文件 sso.properties

sso.secretkey=Lg8V51188n0809i5l8
sso.cookie.name=uid
sso.cookie.domain=localhost
sso.login.url=http://localhost:8088/SpringWind/account/login.html 如果项目配置了 名称,后面就跟项目名称,比如我的是SpringWind,就使用
http://localhost:8088/SpringWind/account/login.html,如果不配置项目名称,则使用
http://localhost:8088/account/login.html

另外就是修改下domain的值为localhost。作者自己写的拦截器里面有拦截,如果domain和本地ip地址不同,会一直跳转到首页。同理如果部署到服务器,则使用服务器的ip即可。
												

spring-wind 搭建过程问题记录的更多相关文章

  1. Apache tomcat高可用web集群搭建过程配置记录

    说明,本文仅作为个人搭建配置保存,问题处理没有一一列出,过程也未见详尽,有问题的朋友可以直接留言给我,会一一回复,谢谢. 小目标: 支持故障转移(或主备,扩展性不佳),保证故障转移后,对前端用户透明, ...

  2. Spring MVC 搭建过程中web.xml配置引入文件的路径问题

    为啥要说一下这么low的问题,因为我是一个比较low的人,哈哈.本来我技术有限,没事干自己撘个环境找找乐趣,结果被各种基础问题,弄的一脸蒙蔽.算了不多说,直接说问题. 1.首先说一下java编译后的文 ...

  3. 懒人记录 Hadoop2.7.1 集群搭建过程

    懒人记录 Hadoop2.7.1 集群搭建过程 2016-07-02 13:15:45 总结 除了配置hosts ,和免密码互连之外,先在一台机器上装好所有东西 配置好之后,拷贝虚拟机,配置hosts ...

  4. mercurial(Hg) Server 搭建 过程记录

    mercurial(Hg) Server 搭建 过程记录 1.  环境说明 只是测试搭建,环境为本机开发环境:win 8.1 + IIS8.5 软件准备: 2.  软件安装 先安装Python2.7, ...

  5. 02.基于IDEA+Spring+Maven搭建测试项目--详细过程

    一.背景介绍 1.1公司相关技术 Git:是一款免费的开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目,方便多人集成开发 Maven:是基于项目对象模型(POM),可以通过一小段描述信息 ...

  6. Maven聚合、Maven仓库jar包以及Spring+MyBatis+JUnit+Maven整合测试的搭建过程

    一.Maven将父项目创建到父项目的内部 在父项目的pom.xml上 点右键,选择maven-->new-->maven module  project 二.Maven聚合 在某个项目的p ...

  7. Java Web项目搭建过程记录(struts2)

    开发工具:eclipse 搭建环境:jdk1.7   tomcat 8.0 基础的java开发环境搭建过程不再赘述,下面从打开eclipse 之后的操作开始 第一步: 创建项目,File -> ...

  8. asp.net mvc 简单项目框架的搭建过程(一)对Bll层和Dal层进行充分解耦

    学习asp.net 已经有近三个月的时间了,在asp.net mvc上花的时间最多,但个人真是有些菜,不得不说,asp.net mvc的水真的还是蛮深的.目前在公司实习,也见过公司几个项目的代码了.对 ...

  9. 自我救赎 → 利用 IDEA 和 Spring Boot 搭建 SSM

    前言 开心一刻 儿子读高中放学回来了,一向不管他学习的我突然来了兴趣,想看看他的学习他的状况,抄起他的数学习题看了起来,当看到 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x ...

随机推荐

  1. pymysql 各种坑总结

    pymysql各种坑只针对自己的项目1.关于关闭连接,报错为:pymysql.err.InterfaceError: (0, '') 这个错误原因:对已经关闭的链接再次进行操作,参考MySQL.err ...

  2. V1-bug Alpha阶段发布说明

    V1-bug Alpha阶段发布说明 欢迎使用WEDO创意社区(部署IP为:60.205.230.0) WHAT'S WEDO 这是一个致力于创意发布.合作开发的网站. 模块 功能 注册 添加新账号 ...

  3. Git版本回退和撤销修改

    版本回退: 在实际工作中,我们会不断对文件进行修改,然后不断提交修改到版本库里,一旦你把文件改乱了,或者误删了文件,还可以从最近的一个commit恢复,然后继续工作,而不是把几个月的工作成果全部丢失. ...

  4. 解决重装 Oracle 出现的 INS-32025 问题,完全卸载 Oracle11g

    如果您要重装 Oracle,并且安装程序正在运行,请先关闭它. 完全卸载: 1.停止所有 Oracle 服务 2.通过开始菜单 Oracle Installation Products -> U ...

  5. Oracle 锁机制

    本文参考自:ORACLE锁机制 1.oracle是一个多用户使用的共享资源,当多个用户并发的操作同一数据行时,那么在oracle数据库中就会存在多个事务操作统一数据行的操作,如果不对并发操作进行控制, ...

  6. VMware Workstation pro14 虚拟机下安装CentOS6.5图文教程

    1 启动VMware的画面 2.点击 创建新的虚拟机 3 选择 典型(推荐) 4 选择 稍后安装操作系统 5 选择客户机操作系统类型 6 设置虚拟机名称 和 安装路径 7 指定磁盘容量 8 点击 自定 ...

  7. JavaEE_XMind总结

    1 Servlet 2 ServletContext 3 HttpServletResponse 4 HttpServletResquest 5 Cookie

  8. 关于echart没有数据显示暂无数据

    对于echart当没有数据的时候怎么显示, 首先,如果你的series的值为空值的话,曲线将是一片空白,什么都不会有,所以在这里就要进行一个判断,如果没有值的话,人为的添加一个键 if(Object. ...

  9. ZOJ 3769 Diablo III

    描述 Diablo III is an action role-playing video game. A few days ago, Reaper of Souls (ROS), the new e ...

  10. Bootstrap使用模态框modal实现表单提交弹出框

    Bootstrap 模态框(Modal)插件 模态框(Modal)是覆盖在父窗体上的子窗体.通常,目的是显示来自一个单独的源的内容,可以在不离开父窗体的情况下有一些互动.子窗体可提供信息.交互等.如果 ...