使用spring boot连接数据库出现no profiles are currently active的问题
来源:互联网 发布:vr全景合成软件 编辑:程序博客网 时间:2024/06/06 15:47
问题描述:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
解决方法:
在spring boot入口方法上加上注解
//禁用spring自动配置数据库
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
阅读全文
0 0
- 使用spring boot连接数据库出现no profiles are currently active的问题
- No MDI forms are currently active 的解决方法
- spring boot中spring.profiles.active的用法
- spring boot启动报错:No active profile set, falling back to default profiles: default
- Cannot creat form. No MDI forms are currently active.
- No transaction is currently active问题
- java编程中spring boot 使用spring.profiles.active来分区配置
- Spring boot @Test的时候需要设置 环境变量:spring.profiles.active = dev
- spring.profiles.active
- spring.profiles.active 针对多种启动环境的spring配置
- spring.profiles.active 针对多种启动环境的spring配置
- spring.profiles.active 针对多种启动环境的spring配置
- springboot 使用spring.profiles.active来分区配置
- spring.profiles.active=dev
- 关于spring boot整合mybatis使用oracle数据库出现could not load:oracle.jdbc.driver.OracleDriver问题的终极解决方案
- Spring 启动时报No active profile set, falling back to default profiles default
- There are currently 0 running soapUI MockServices的问题
- 基于Spring boot的Spring data jpa连接MySQL数据库
- 找零问题
- js中const,var,let区别
- Linux 简单的命令
- 欢迎使用CSDN-markdown编辑器
- 虚拟机:mac系统虚拟机安装
- 使用spring boot连接数据库出现no profiles are currently active的问题
- hiho #1532 : 最美和弦(记忆化搜索思路的DP写法)
- 笨方法学python(本文为阅读时从此书摘录的笔记) 第四天
- 免费的h5下载网站,资源。
- CNTK API文档翻译(9)——使用自编码器压缩MNIST数据
- 5-30 字符串的冒泡排序 (20分)
- webpack 1.x构建react项目简单配置
- React 开发必备插件 React Developer Tools
- 割点