解决 :No active profile set, falling back to default profiles: default 问题

这篇具有很好参考价值的文章主要介绍了解决 :No active profile set, falling back to default profiles: default 问题。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一,问题分析:以上的提示是:没有找到激活的properties或yaml文件,项目启动时使用默认的配置。造成这个原因有多种,如:resouces 目录或配置文件没有被正常识别,下面要说的是另外一种原因造成的!, 即编译之后target文件夹中配置文件不存在!!!

二、解决问题

解决 找到对应的pom文件,查看是否存在 <packaging>pom</packaging>,若存在,将其删除,再重新编译即可!具体原因查看maven的打包方式!文章来源地址https://www.toymoban.com/news/detail-571830.html

到了这里,关于解决 :No active profile set, falling back to default profiles: default 问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • findfont: Font family [‘Times New Roman‘] not found. Falling back to DejaVu Sans.

    远程使用服务器绘图时,设置font_dict中字体格式为\\\'Times New Roman\\\',如下: 在绘图的过程中报出以下错误: 服务器上缺少Times New Roman对应字体文件。 在服务器上安装 Times New Roman 字体文件。         方法1(推荐):         从win10系统上寻找,寻找路径是:‘C:Windows

    2023年04月10日
    浏览(24)
  • 解决No Activity found to handle Intent

    intent-filter 里面除了要有action 还要有 category android:name=\\\"android.intent.category.DEFAULT\\\" /

    2024年02月12日
    浏览(34)
  • User profile is available. Using ‘/root/.aspnet/DataProtection-Keys‘ as key repository; keys will no

    错误现象: 无法访问 wwwroot 中的静态资源 复现详细错误: 参考:asp.net core 2.1部署到Linux无法访问wwwroot文件夹中的资源 说明: 启动的时候没在项目文件夹中启动,我之前是在Linux主目录启动的项目。 进入项目目录,再运行 项目名.dll 文件。

    2024年02月15日
    浏览(47)
  • flutter 开发之 Could not build the precompiled application for the device. Error (Xcode): No profiles f

    问题:Could not build the precompiled application for the device. Error (Xcode): No profiles for ‘com.example.ql’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.example.ql’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to x

    2024年02月22日
    浏览(44)
  • Win11系统user profile service服务登录失败解决方法

    Win11系统user profile service服务登录失败解决方法分享。有用户在使用电脑的时候遇到了一些问题,系统的user profile service服务无法登录了。出现这个问题可能是系统文件损坏,或者中了病毒。接下来我们一起来看看如何解决这个问题的操作方法分享吧。 解决方法如下: 方法一

    2024年02月06日
    浏览(68)
  • 已解决libpng warning: iccp: known incorrect sRGB profile

    已解决AttributeError: module ‘pygame.time’ has no attribute ‘sleep’ libpng warning: iccp: known incorrect sRGB profile 粉丝群里面的一个小伙伴遇到问题跑来私信我,想用pygame.time,但是发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮

    2024年02月01日
    浏览(30)
  • Android Studio中App Inspection 或Profiler里网络请求数据显示中文乱码解决办法

    效果如下: 解决办法 Android studio在 Help中找到Edit Custom VM Options… 并打开文件,在文件中添加 最后重启AS可解决

    2024年02月12日
    浏览(44)
  • 【redis已解决】Warning: no config file specified, using the default config. In order to specify a config

    Warning: no config file specified, using the default config. In order to specify a config file use /redis-6.2/redis-server /path/to/redis.conf 点击这个报错 表示没有指定配置文件,使用默认配置。要指定配置文件,请使用redis-server /path/to/redis.conf 启动成功 (如果你怕麻烦就使用批处理) redis-server.exe redis

    2024年02月16日
    浏览(56)
  • SpringBoot:解决Property ‘spring.profiles‘ imported from location ‘class path resource 问题

    一、在学习SpringBoot配置profile的时候,.yml文件内容明明跟老师敲的一模一样,但还是报 org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property \\\'spring.profiles\\\' imported from location \\\'class path resource [application.yml]\\\' is invalid and should be replaced with \\\'spring.config.activate.on-profile\\\' [ori

    2024年02月16日
    浏览(25)
  • CentOS 8 执行yum命令报错:Failed to set locale, defaulting to C.UTF-8

    今天Docker新搞了一个 CentOS 镜像,在运行基于该镜像的容器,执行 yum 命令时,遇到了如下报错: 目前使用 docker pull centos 不指定tag,拉取的latest,centos的版本为 8.4.2105 其中 Error: Failed to download metadata for repo \\\'appstream\\\': Cannot prepare internal mirrorlist: No URLs in mirrorlist 是yum镜像源的问

    2024年02月11日
    浏览(43)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包