No active profile set, falling back to default profiles: default
来源:互联网 发布:voc0712数据集 编辑:程序博客网 时间:2024/06/05 20:02
在使用spring cloud 微服务平台的过程中,遇到服务获取不到配置中心的配置文件,启动报如下错误:
No active profile set, falling back to default profiles: default,经逐步排查发现问题
1.bootstrap.properties 配置文件内容核查
spring.cloud.config.uri=http://127.0.0.1:5571/
spring.cloud.config.label=profiles
spring.application.name=resource-local-ts
spring.cloud.config.profile=devs
未发现问题
2.spring-config-server 服务核查
resource-local-ts-devs.yml
未发现问题
3.spring-config-server 服务正常启动,可手动获取到配置文件
http://127.0.0.1:5571/resource-local-ts/devs
经过上面的排查,想到可能是pom.xml文件中未引依赖jar包
<!-- 配置中心 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
加上依赖,重新启动,问题解决。
- No active profile set, falling back to default profiles: default
- No active profile set, falling back to default profiles: default
- Spring 启动时报No active profile set, falling back to default profiles default
- spring boot启动报错:No active profile set, falling back to default profiles: default
- spring.profiles.default
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- 问题1:Project has no default.properties file! Edit the project properties to set one.
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one
- Project has no default.properties file! Edit the project properties to set one.错误解决方案
- Project has no default.properties file! Edit the project properties to set one.
- 解决Cannot set LC_CTYPE to default locale: No such file or directory
- Project has no default.properties file! Edit the project properties to set one
- android开发:Project has no default.properties file! Edit the project properties to set one.错误
- Android 通过adb命令同步手机(user_debug版本系统)和电脑时间
- 技术之路概览及网页资源
- HTML中DOM解析篇1--nodeType\nodeValue\nodeName
- oracle delete、truncate、drop语句区别
- makefile编写
- No active profile set, falling back to default profiles: default
- PCF8575扩展SOC端口很方便
- Faster-RCNN Tensorflow版本源码解析(一):网络训练部分train_net.py
- 利用history对象实现地址栏更新,页面局部刷新
- java 读取 txt文件 特定行
- 关于linux删除文件夹命令方法
- maven私服的搭建
- INFO [Timer-282] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading.....
- 中间件的实现原理