StringBoot 启动错误,can not find file [****.properties]
StringBoot 启动错误
SpringBoot 启动时加载配置文件提示找不到该文件
在项目 ****/src/main/resources目录下找不到这个文件
猜测可能是引入的依赖包中用到了这个文件
1、如果你可以很容易的定位到那个类用了那个配置文件,可以在启动的时候不加载这个类
@ComponentScan(basePackages ={},//***加载的时候排除掉这个类 xxx excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = {FeignConfig.class,xxx.class})}
)
public class PlatformApplication {public static void main(String[] args) {ApplicationContext ctx = SpringApplication.run(PlatformApplication.class, args);//print env profile infoString[] activeProfiles = ctx.getEnvironment().getActiveProfiles();for (String profile : activeProfiles) {log.info("order-test starting by profile: {} =============================== {} ====== {} ====== {}", profile, profile, profile, profile);}log.info("startup successfully");}}
StringBoot 启动错误,can not find file [****.properties]相关推荐
- windows7 php 无法启动,window_Win7系统无法启动错误提示代码为File:\BOOT\BCD, 很多人Win7系统用户都有遇 - phpStudy...
Win7系统无法启动错误提示代码为File:\BOOT\BCD 很多人Win7系统用户都有遇到过电脑无法开机出现错误提示的问题,提示File:\BOOT\BCD status:0xc000000f 的 ...
- 解决Linux下MySQL启动错误Starting MySQL.Manager of pid-file quit without updating file.[FAILED]...
刚装完MySQL,启动时报如下错误: Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 解决Linux下My ...
- Hive 1.1.1 启动错误
Hive 下载 [jifeng@feng03~]$ mkdir hive [jifeng@feng03~]$cd hive/ [jifeng@feng03 hive]$ wget http://ap ...
- 启动ipython_ipython,_ipython 启动错误,ipython - phpStudy
ipython 启动错误 [paulsweet123@localhost ~]$ ipython notebook [TerminalIPythonApp] WARNING | Subcommand ...
- Jmeter启动错误及解决方案
最近使用Jmeter做压力测试时,遇到了几个启动错误,如下(mac环境) 第一个:Unrecognized VM option 'MaxMetaspaceSize=256m' 原先以为是Jmeter的 ...
- 终极解决方案:Emacs+Slime+Lisp启动错误:Polling /tmp/slime.50
2019独角兽企业重金招聘Python工程师标准>>> 终极解决方案:Emacs+Slime+Lisp启动错误:Polling "/tmp/slime.5000 .. 25 ...
- MFC的exe启动时提示应用程序配置不正确,应用程序未能启动错误
MFC的exe启动时提示应用程序配置不正确,应用程序未能启动错误 老姐笔记本中毒太深于病入膏肓,无奈迫写一程序"曲线救国".刚启动自己写的程序就出现应用程序配置不正确,应用程序未能 ...
- Apache2启动错误以及Ubuntu update的错误
Apache2启动错误以及Ubuntu update的错误 1.在利用命令sudo /usr/sbin/apache2ctl start时出现apache2: Could not determine ...
- [jenkins] 启动错误 Failed to start LSB: Jenkins Automation Server.
[jenkins] 启动错误 Failed to start LSB: Jenkins Automation Server. 安装好jenkins后, 首次启动失败 启动命令 失败提示 失败详情 原因 ...
最新文章
- python 使用全局变量_如何在Python中的不同模块中使用全局变量
- 诺基亚将携手Nedaa在迪拜设立IoT实验室
- django-查询集特性
- 德勤元宇宙综观:愿景、技术和应对
- 如何用C++制作游戏开发概述
- 正斜杠(左斜杠)和反斜杠(右斜杠)
- 只有你想不到的 看看这些另类的可穿戴设备
- Java小游戏之《大鱼吃小鱼》
- os 安装 php redis,Mac Xamp安redis及安装php-redis扩展
- pod 排错----Pod 一直处于 Pending 状态
- 线段树求逆序对(hdu1394Minimum Inversion Number)
- python中常用于输出信息的语句函数是print括号_第十四课我们研究一下常用的print()函数,翻看了一下Python宝典...
- 2016年终总结:一份来自跨界喜剧人的告白
- 计算机名人榜----- 阿兰·麦席森·图灵
- grads中画站点图
- 基于51单片机的无线通讯公交报站系统
- c语言 游戏全屏,常用电脑快捷键大及游戏全屏问题.doc
- 战五渣系列之三(6个命令)
- 安卓手机安装Linux双系统,安卓+Win10双系统?这个可以有!
- Android 自定义 View 三步骤
热门文章
- LaTeX西电本科论文模板使用教程(附西电论文LaTeX模板)
- auc 损失_ICPR 2020 | CC-Loss:用于图像分类的通道相关损失函数
- android平分布局的隐藏,Android布局 平分界面
- core sync是什么软件_索尼手机系统自带软件精简列表
- 华为云会议的开放能力
- CSDN高校俱乐部高校讲座在长沙拉开帷幕
- QQlive 的视频转存
- 安卓控件大小动态文字排版_动态Web排版:爆炸文字
- Javascript switch...case比较语法
- 我编程我快乐——读后感(前奏)