spring boot 啟動報錯:Cannot determine embedded database driver class for database type NONE
錯誤原因:spring boot默認會加載org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration類,DataSourceAutoConfiguration類使用了@Configuration註解向spring註入了dataSource bean。因為工程中沒有關於dataSource相關的配置信息,當spring創建dataSource bean因缺少相關的信息就會報錯。
解決辦法:第一種:在Application類上增加@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}),阻止spring boot自動註入dataSource bean
第二種:增加數據庫配置相關信息
springboot之freemarker:
創建springboot項目,在pom中添加了freemarker的jar包,
在controller層寫好相關代碼並且把信息傳到指定的.ftl文件中,
在.ftl中把信息取出來
啟動,運行正常!
spring boot 啟動報錯:Cannot determine embedded database driver class for database type NONE
相關推薦
spring boot 啟動報錯:Cannot determine embedded database driver class for database type NONE
info for bubuko 報錯 spring free 增加 .com control 錯誤原因:spring boot默認會加載org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfigurati
spriing boot 啟動報錯:Cannot determine embedded database driver class for database type NONE
.class sre 5.0 sin via cor pan cep can 最近在學習使用spring boot。使用maven創建好工程,只引用需要用到的spring boot相關的jar包,除此之外沒有任何的配置。 寫了一個最簡單的例子,如下所示: 1 pa
spring-boot啟動報錯:This application has no explicit mapping for /error, so you are seeing this as a fal
1、報錯資訊: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. We
Spring boot 啟動報錯:com.mongodb.MongoSocketOpenException: Exception opening socket
clas cati helper res connect ava bstr efault def 詳細錯誤信息: com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.
Spring Boot 啟動報錯:LoggingFailureAnalysisReporter
char build starting zed load ring base resource enc 17:57:19: Executing task ‘bootRun‘... Parallel execution with configuration on dem
IntelliJ IDEA 建立spring boot專案報錯:Cannot download 'https://start.spring.io' 總結
1.將https 更換成http. 方法二:在Setting設定裡面更改 &nbs
Spring boot 啟動報錯-Reason Failed to determine a suitable driver class
啟動異常 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataS
Spring Boot 啟動報錯 Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 37
work 結果 frame getc director inf 中文 getclass post 使用命令 java -jar springBoot.jar 啟動項目,結果報錯如下: Exception in thread "main" java.lang.String
解決spring boot啟動報錯java.lang.NoClassDefFoundError: ch/qos/logback/classic/Level
blog nbsp java In idea AS level def sdn 解決spring boot啟動報錯java.lang.NoClassDefFoundError: ch/qos/logback/classic/Level 學習了:https://blog.cs
Spring boot 啟動報錯 'elasticsearchTemplate' that could not be found.
Spring boot 啟動報錯 (a)異常資訊 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 201
Springboot專案啟動報錯,提示Cannot determine embedded database driver class for database type NONE
我在springboot專案裡面引入了資料庫的配置: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId&g
Spring-Boot啟動報錯java.lang.NoClassDefFoundError: ch/qos/logback/classic/turbo/TurboFilter
今天搭建專案的時候啟動報錯,java.lang.NoClassDefFoundError: ch/qos/logback/classic/turbo/TurboFilter 具體錯誤如下: 2018-09-15 16:06:14,588 main ERROR append
Spring boot 啟動報錯 'elasticsearchTemplate' that could not be found.
Spring boot 啟動報錯 (a)異常資訊 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' e
使用STS建立Spring boot project報錯:Project build error: Non-resolvable parent POM for
剛開始建立Spring boot專案時,pom.xml檔案時報如下圖錯誤:在網上百度的說讓更新下Maven的update project,我試了沒用,最後將version版本改了就行了,我原來版本是2.0.1RELEASE,改成了1.5.6.RELEASE就可以了。
Spring boot 啟動報錯 Failed to auto-configure a DataSource
2018-03-29 22:09:30.459 INFO 10016 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2018-0
Spring boot 啟動報錯版本不對
發現session store type使用來存放session的儲存方式,目前Spring boot中只支援Redis方式。 由於本應用暫無需將session放入redis的需求,故這裡就可以將session store type設定為none. 這裡我們將此配置資訊放入applica
新建Spring boot 啟動報錯 Failed to auto-configure a DataSource
今天學習springboot,使用idea建立專案。在選擇元件時添加了mysq 然後在第一次啟動的時候啟動報錯,錯誤資訊如下: ***************************APPLICATION FAILED TO START***************************Descriptio
使用STS建立Spring boot project報錯:Project build error: Non-resolvable parent POM for...
使用Spring Tool Suite,按照嚮導建立Spring boot starter project,結果,報錯。 Description Resource Path Location Type Project build erro
Spring Boot 啟動報錯Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFa
在配置SpringBoot的時候 啟動的時候報錯 Unable to start ServletWebServerApplicationContext due to missing ServletWeb
Spring boot 啟動報錯 Unsupported major.minor version 52.0
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/yf/springboot/Application : Unsupported major.minor version 52.0