您的位置:首页 > 编程语言 > Java开发

使用spring boot连接数据库出现no profiles are currently active的问题

2017-07-16 19:22 1916 查看

问题描述:

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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐