spring工程启动出现如下错误的解决办法:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-10-17 22:44:48.634 ERROR 3668 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 
***************************
APPLICATION FAILED TO START
***************************
Description:
Cannot determine embedded database driver class for database type NONE
Action:
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).

发现是pom文件存在多余的依赖,我的项目是多余了jpa的依赖

<!-- 支持JPA的组件 -->
  	<dependency>
  		<groupId>org.springframework.boot</groupId>
  		<artifactId>spring-boot-starter-data-jpa</artifactId>
  	</dependency>

后期将他删除,保存,maven更新一下项目就好了
亲测有效,记录一下

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐