源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  spring boot出现no profiles are currently active

spring boot出现no profiles are currently active

分类: 文章 • 2024-09-16 18:32:34

如果不同环境有不同application-${}.properties,则在eclipse中需要设置环境变量

spring boot出现no profiles are currently active

工程右键maven-》select maven profiles,勾选环境

spring boot出现no profiles are currently active

 

如果上述步骤不行,再试一下

 

在启动类上右键run as-》run configuration

spring boot出现no profiles are currently active

相关推荐

  • 关于spring boot自动注入出现Consider defining a bean of type 'xxx' in your configuration问题解决方案
  • 关于spring boot应用自动注入出现Consider defining a bean of type 'xxx' in your configuration问题解决方案
  • Spring Boot出现警告 WARNING: An illegal reflective access operation has occurred
  • spring-boot创建项目出现spring-boot-starter-parent版本报红问题
  • spring-boot引入thymelaef出现的种种异常问题
  • idea 运行spring boot 出现错误处理
  • 读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par
  • 关于spring boot使用CommonsMultipartFile进行文件上传出现的问题
  • Spring boot整合邮件发送出现Failed to read artifact descriptor for org.springframework.boot.**解决方法
  • Spring could 多环境配置-spring.profiles.active
  • 电子海图开发第十五篇 墨卡托海图投影(共一百篇)
  • Synchronized保证线程安全的原理
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号