在gitee 上clone下项目,启动不起来,求助大佬

提问 5 1781
java_node
java_node 2018-07-18
版本:renren-security 最新 开发环境:
在gitee 上clone下项目,启动不起来,求助大佬 admin ----- 错误: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method 'methodValidationPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroFilter' defined in class path resource [io/renren/common/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'shiroFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityManager' defined in class path resource [io/renren/common/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'securityManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRealm': Unsatisfied dependency expressed through field 'sysUserDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysUserDao' defined in file [E:\开源项目\renrenio-renren-security-master\renren-security\renren-admin\target\classes\io\renren\modules\sys\dao\SysUserDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/spring/boot/starter/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [io/renren/datasources/DynamicDataSourceConfig.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'firstDataSource' defined in class path resource [io/renren/datasources/DynamicDataSourceConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'firstDataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceBuilder img[//cdn.renren.io/33744201807181434260.png] img[//cdn.renren.io/af647201807181434489620.png]
回帖
  • 先在根目录执行mvn clean install,再试试
    0 回复
  • lifanoy
    2018-11-29
    @Mark 根目录执行完还是不行,怎么办?face[可怜]
    0 回复
  • lifanoy
    2018-12-04
    楼主问题解决了没呢?能否提供一下解决办法
    0 回复
  • 姣姣
    2019-09-12
    楼主解决了么?可以分享下把办法吗
    0 回复
  • 姣姣
    2019-09-12
    @lifanoy 请问问题解决了吗 可以分享下吗
    0 回复