• spring-wind 搭建过程问题记录


           最近想搭一个 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:workspaceSpringWindSpringWind argetSpringWindWEB-INFclassescomaomidouspringwindmapperSysLogMapper.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:workspaceSpringWindSpringWind argetSpringWindWEB-INFclassesspringapp-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
    SpringWindSpringWind argetSpringWindWEB-INFclassescomaomidou
    springwindmapperSysLogMapper.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
    SpringWindSpringWind argetSpringWindWEB-INFclassesspringapp-
    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即可。


  • 相关阅读:
    Unity3D Shader入门指南(二)
    Unity3D Shader入门指南(一)
    NGUI 减少drawcall规则
    linux系统date命令详解
    使用Installutil安装系统服务方法
    各大视频网站广告屏蔽代码
    C#--无边框窗体实现拖动、最大化、最小化、关闭(转)
    C# 如何在winform窗体自定义一个扁平化控件(转)
    C# winform 界面美化技巧(扁平化设计) (转)
    VC6插件安装--Unable to register this add-in because its DllRegisterServer returns an error (转)
  • 原文地址:https://www.cnblogs.com/thinkingandworkinghard/p/6685153.html
Copyright © 2020-2023  润新知