zoukankan      html  css  js  c++  java
  • spring boot 无法启动 相关问题

    用原来的dev能正常启动,但换成自己新添加的yml文件,却无法启动

    一行日志都没有,直接报:
    Disconnected from the target VM, address: '127.0.0.1:63190', transport: 'socket'

    原来有日志,只是logback-sprint中根据yml环境配置了日志级别,而我新添的yml没有配置进去。

    SpringBoot的redis启动报错:ERR This instance has cluster support disabled

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationAspect': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserAccessTokenCacheOperator': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheInvoker': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisTemplate' defined in class path resource [com/yangdj/sa/japi/commons/config/RedisConfig.class]: Unsatisfied dependency expressed through method 'redisTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisConnectionFactory' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/JedisConnectionConfiguration.class]: Invocation of init method failed; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR This instance has cluster support disabled

    从报错误的信息ERR This instance has cluster support disabled很明显看得出来,是没有启动redis集群功能,可是我项目配置的集群的配置方式,要么修改代码为单机配置,要么修改redis为集群方式。

    解决办法:
    1、可以修改配置为单机redis配置:
    spring:
    redis:
    host: qianxunclub.com
    port: 6666

    2、或者在安装redis的目录找到redis配置文件redis.conf,里面会找到配置:
    # cluster-enabled yes
    把注释去掉就可以了
    cluster-enabled yes

  • 相关阅读:
    size_type、size_t、differentce_type以及ptrdiff_t
    题目1003:A+B ---c_str(),atoi()函数的使用;remove , erase函数的使用
    字符串中符号的替换---replace的用法
    A+B for Matrices 及 C++ transform的用法
    97.5%准确率的深度学习中文分词(字嵌入+Bi-LSTM+CRF)
    详细解读简单的lstm的实例
    如何使用 Pylint 来规范 Python 代码风格
    Python下Json和Msgpack序列化比较
    除了cPickle,cjson外还有没有更高效点的序列化库了
    python对象序列化或持久化的方法
  • 原文地址:https://www.cnblogs.com/Denny_Yang/p/15412871.html
Copyright © 2011-2022 走看看