如何做网站联盟营销,网线制作的过程,有什么网站学做标书的,易烊千玺网页设计模板代码在一次学习设计模式的时候#xff0c;沿用一个旧的boot项目#xff0c;想着简单#xff0c;就把数据库给关掉了#xff0c;结果报错
Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. 没有数据库的需…在一次学习设计模式的时候沿用一个旧的boot项目想着简单就把数据库给关掉了结果报错
Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. 没有数据库的需要为什么会报错If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
我把我的代码的target、缓存全部清空以及所有的数据库连接都关闭了依然未能解决问题。 SpringBootApplication(exclude DataSourceAutoConfiguration.class)在加了这一段注解之后【显示关闭数据库的自动配置】报错得以解决。
当然如果本身是想配置数据库读取不成功的话可以去检查一下你的target文件中配置文件和你源代码是否一致【是否读取到了源代码中的配置信息暴力的做法就是直接拖过去】问题应该能解决~~~