使用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)
相关文章推荐
- Spring Boot使用Feign客户端调用远程服务时出现:timed-out and no fallback available,failed and no fallback available的问题解决
- 关于spring boot整合mybatis使用oracle数据库出现could not load:oracle.jdbc.driver.OracleDriver问题的终极解决方案
- hibernate和spring整合时出现的数据库连接问题
- Spring boot中出现JDK dynamic proxy使用@Resource注入实例出现问题
- 使用springboot+maven出现的问题
- 初次使用WebPartManange出现数据库连接出错的问题
- 利用springboot使用JdbcTemplate连接数据库
- spring boot启动报错:No active profile set, falling back to default profiles: default
- springboot 使用spring.profiles.active 区分不同环境下配置文件
- Spring Boot通过Mybatis,使用mapper接口和xml配置sql,连接数据库
- SpringBoot中连接MYSQL数据库,并使用JPA进行数据库的相关操作
- 关于在使用c3p0 连接池配置数据库连接时出现 com.mchange.v2.resourcepool.CannotAcquireResourceExceptiond问题的解答
- 关于使用CreateUserWinzard控件创建用户时出现连接数据库问题的解决方法
- 关于使用navicat for mysql在建立数据库连接时出现的2003 can't connect to mysql server on'localhost'(10038)问题
- SpringBoot使用多实例QUARTZ出现重复执行问题
- velocity使用——SpringBoot版本由1.5.9变为1.3.5出现问题
- 《关于在MFC中使用ODBC方式连接数据库可能出现的问题》第一篇
- Spring-boot+JPA+Hibernate项目修改数据库MySQL为Oracle出现的问题
- Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决
- ireport连接数据库、工具使用过程出现的问题及解决方法