springboot启动提示缺少数据源
2024-09-05 19:44:18
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
正解:因为spring boot只要你在pom中引入了mybatis-spring-boot-starter 他就会默认需要加载数据库相关的配置
可以加上
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
最新文章
- linux下mnt目录作用
- centos6.5 安装mysql 的过程
- 在CentOS6.7操作系统上编译安装mysql-5.6.31
- hibernate one-to-many many-to-one 双向注解
- poj1005 I Think I Need a Houseboat
- Singleton(单例模式)
- python中的buildin函数详解(第一篇)
- VGA IP核的制作
- asp.net 二级域名session共享
- bzoj1087 [SCOI2005]互不侵犯
- 剑指Offer——顺丰笔试题+知识点总结
- c#学习笔记 day_one
- 安装nova后解决登录没账号问题
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisConnectionFactory' defined in class path resource
- docker上配置mysql主从复制
- Swoole 理解manager进程和worker进程的启动顺序,以及演示如何停止或者重启服务端。
- Selenium+Java自动化之如何优雅绕过验证码
- centos7下安装docker(9.1容器对资源的使用限制-CPU)
- js-dom-动态创建html标签时,name属性的初始化问题
- js template实现方法