bladex-boot无法启动服务,提示Nacos 未配置

Blade 未结 1 1141
watchdb
watchdb 剑童 2020-06-09 13:45

一、该问题的重现步骤是什么?

由于bladex-tool无法依赖,所以全部导入到工程中,模块依赖的方式

image.png


二、你期待的结果是什么?实际看到的又是什么?

期待正常启动,实际提示服务失败,需要配置Nacos


三、你正在使用的是什么产品 ,什么版本?在什么操作系统上?

bladex-boot 最新版本 2.5.1 MacOS


四、请提供详细的错误堆栈信息,这很重要。

----启动中,读取到的环境变量:[dev],jar地址:[/Users/xxxxx/IdeaProjects/xxx/bladex-boot/target/classes/]----

                   ______  _             _       ___   ___

                   | ___ \| |           | |      \  \ /  /

                   | |_/ /| |  __ _   __| |  ___  \  V  /

                   | ___ \| | / _` | / _` | / _ \   > <

                   | |_/ /| || (_| || (_| ||  __/ /  .  \

                   \____/ |_| \__,_| \__,_| \___|/__/ \__\


:: BladeX 2.5.1.SNAPSHOT :: blade-api:dev :: Running SpringBoot 2.1.13.RELEASE :: 


2020-06-09 13:27:28.790 ERROR [blade-api,,,] 58869 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Application failed to connect to Nacos server: ""


Action:


Please check your Nacos server config


2020-06-09 13:27:28.790 ERROR [blade-api,,,] 58869 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Application failed to connect to Nacos server: ""


Action:


Please check your Nacos server config

五、若有更多详细信息,请在下面提供。

application.yml

:
  : :
    : : : 1024
    : :
  :
: oracle.jdbc.OracleDriver
    :
      : select 1 from dual
      : : : : : : : : : : :
        : : blade
        : 1qaz@WSX
      :
        : : /*
        : : true
        : 10

:
  : classpath:org/springblade/**/mapper/*Mapper.xml
  : org.springblade.**.entity
  :
    : :
      : : : : : : 1
      : 0
  :
    : : :
  : BladeX 接口文档系统
  : BladeX 接口文档系统
  : 2.5.1.SNAPSHOT
  : Powered By BladeX
  : https://bladex.cn
  : https://bladex.cn
  :
    : smallchill
    : smallchill@163.com
    : https://gitee.com/smallc

:
  : \u5B8B\u4F53
  : \u5B8B\u4F53
  : \u5B8B\u4F53
  : : false

:
  : : qiniu
  : : http://prt1thnw3.bkt.clouddn.com
  : N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h
  : AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS
  : bladex

:
  :
    :
      : 233************
      : 233************************************
      : ${}/oauth/redirect/github
    :
      : 233************
      : 233************************************
      : ${}/oauth/redirect/gitee
    :
      : 233************
      : 233************************************
      : ${}/oauth/redirect/wechat
    :
      : 233************
      : 233************************************
      : ${}/oauth/redirect/qq
    :
      : 233************
      : 233************************************
      : ${}/oauth/redirect/dingtalk

:
  :
    : :
    : : : :
    : :
      - /blade-chat/weixin
      - /blade-desk/notice/submit
  :
    :
      - /blade-test/**
    :
      - : ALL
        : /blade-chat/weixin/**
        : - : POST
        : /blade-desk/dashboard/upload
        : - : POST
        : /blade-desk/dashboard/submit
        : :
      - : sword
        :
          - /blade-sword/**
      - : saber
        :
          - /blade-saber/**
  :
    : : : tenant_id
    :
      - blade_user

application-dev.yml

:
  :
    : 127.0.0.1
    : :
    : : :
    : jdbc:oracle:thin:@xx.xx.3:1521:orcl
    : xxxx
    : xxx

:
  : : http://127.0.0.1:1888

:
  :
    : : redis://127.0.0.1:6379
  :
    : : http://localhost:8999
    : /usr/share/nginx/html


1条回答
  • 不要导入到一个工程,BladeX-Tool本地执行mvn clean install就可以安装到本地仓库。

    BladeX再引入依赖就行了。你把BladeX和BladeX-Tool两个放到一起会有问题。


    看这个报错,应该是没有生成如下配置文件,导致启动的时候没有读取到nacos配置从而报错

    image.png

    所以依赖完毕后,BladeX要根目录执行mvn clean compile,把一些配置文件自动编译出来,这样启动就没问题了。

    0 讨论(0)
提交回复