SpringCloud工作笔记086---SpringBoot启动报错:No active profile set, falling back to default profiles
技术交流QQ群【JAVA,C++,Python,.NET,BigData,AI】:170933152
pom.xml加上下面两个依赖,这样就可以了,一般第一个都加了,第二个可能没有加.
如果没有加的话会出现这样的情况,
当启动的时候,如果没添加第2个,如果把target文件夹删除了,然后再启动工程就报这个错误.
下面两种方法都可以起来,不加下面的jar的话:
不删除target文件夹就能起来.
或者说rebuild一下也能起来.
<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>
SpringCloud工作笔记086---SpringBoot启动报错:No active profile set, falling back to default profiles相关推荐
- security工作笔记003---SpringSecurity框架启动报错.bcrypt.BCryptPasswordEncoder‘ that could not be found.
JAVA技术交流QQ群:170933152 醉了,一般这个注入不都是在类顶上注入嘛,这个可好,跑到 ScAuthApplication 中去注入了..搞了半天,也记录一下吧 这里先说一下,其实就是在启 ...
- springboot启动报错:Unregistering JMX-exposed beans on shutdown
环境 1,maven 3.5.0 2,eclipse 4.7.1 3,spring boot 1.5.9.RELEASE springboot启动报错 按照spring 用户手册创建新的spring ...
- SpringBoot启动报错:Parameter 0 of method hmset in com.qcby.rbac.util.RedisUtils required a bean of type
SpringBoot启动报错,报错信息如下: 报错是由于A类中定义了含参数的构造函数,Spring自动构造和注入时未为该Bean传入参数,引起报错. 查了很多资料,最后发现,我是因为注释的时候没有把@ ...
- 启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程
启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程 大概率是缺少了一下依赖 <dependency><g ...
- IDEA springboot启动报错java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
IDEA springboot启动报错: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path: [D:\Java\bi ...
- SpringBoot启动报错Could not resolve placeholder ‘XXX.XXX‘ in value
SpringBoot启动项目时报错: Exception encountered during context initialization - cancelling refresh attempt: ...
- springboot启动报错`CommandLineWrapper` is ill-suited for launching apps on Java 9+.
项目从jdk8升级到jdk11后springboot启动报错,查询多方资料未果 报错信息: `CommandLineWrapper` is ill-suited for launching apps ...
- SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...
- springboot启动报错Logbook
springboot启动报错 APPLICATION FAILED TO START Description: Field logbookHttpRequestInterceptor in com.j ...
最新文章
- 从零搭建一套结构光3D重建系统[理论+源码+实践]
- android 伸缩工具栏,看,这个工具栏能伸缩折叠——Android CollapsingToolbarLayout使用介绍...
- Spark的RDD序列化
- 英伟达Q2营收大涨50%,创下历史新高,游戏业务已不是最大收入来源
- C++ STL库的总结以及实现原理
- 阿里巴巴产品实习生N天
- MVC的实体模型写在类库,为什么被其他类库调用时,用不了模型的表?
- 美国政府发布关键海事行业的网络安全规划
- JavaScript:异步执行机制
- Wannafly挑战赛28
- python中字典的用法_Python中字典的详细用法
- CentOS7 安装 transmission
- ##稻盛和夫的名言##
- July:海量数据处理
- OpenGL绘制球体
- C++游戏game | 井字棋游戏坤坤版(配资源+视频)【赋源码,双人对战】
- @Responsebody utf8 Chinese gibberish
- suest:跨模型比较与广义豪斯曼检验
- free -h 详解
- CPU 上下文切换是什么意思?(下)
热门文章
- PSIM软件学习---03 电路的创建与仿真
- 将自己的dcm数据制作成LUNA16数据集提供数据样式。
- 转: MATLAB: cat函数使用
- C++ 对象关系映射(ORM)介绍
- [精华][推荐]CAS SSO 实现单点登录实例源码
- ansible 基本操作(初试)
- 2.移植uboot-添加2440单板,并实现NOR、NAND启动
- Bootstrapbutton组
- [webpack] 如何把代码内联进html中?
- 关于类的入门例子(1): 继承窗体