<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<scope>runtime</scope>
</dependency>
or the following for mySQL
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
Add any one jar dependency in pom.xml file for connecting spring boot with data base.
23:20:59.442 [main] DEBUG org.springframework.boot.devto ols.settings.DevToolsSettings - Included patterns for restart : []
23:20:59.470 [main] DEBUG org.springframework.boot.devto ols.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/c lasses/, /spring-boot-autoconfigure/tar get/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/c lasses/, /spring-boot-devtools/target/c lasses/]
23:20:59.471 [main] DEBUG org.springframework.boot.devto ols.restart.ChangeableUrls - Matching URLs for reloading : [file:/C:/Users/Sandeep/Downlo ads/Compressed/spring-boot- demo/target/test-classes/, file:/C:/Users/Sandeep/Downloa ds/Compressed/spring-boot- demo/target/classes/]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|__ _/=/_/_/_/
:: Spring Boot :: (v1.5.2.RELEASE)
2017-07-15 23:21:05.656 INFO 5008 --- [ restartedMain] com.concretepage.MyApplication : Starting MyApplication on vipul with PID 5008 (C:\Users\Sandeep\Downloads\Co mpressed\spring-boot-demo\targ et\classes started by Sandeep in C:\Users\Sandeep\Downloads\Com pressed\spring-boot-demo)
2017-07-15 23:21:05.659 INFO 5008 --- [ restartedMain] com.concretepage.MyApplication : No active profile set, falling back to default profiles: default
2017-07-15 23:21:07.248 INFO 5008 --- [ restartedMain] ationConfigEmbeddedWebApplicat ionContext : Refreshing org.springframework.boot.conte xt.embedded.AnnotationConfigEm beddedWebApplicationContext@ 2d7f1219: startup date [Sat Jul 15 23:21:07 IST 2017]; root of context hierarchy
2017-07-15 23:21:29.290 INFO 5008 --- [ restartedMain] trationDelegate$BeanPostProces sorChecker : Bean 'org.springframework.transacti on.annotation.ProxyTransaction ManagementConfiguration' of type [org.springframework.transacti on.annotation.ProxyTransaction ManagementConfiguration$$Enhan cerBySpringCGLIB$$d24aa2e4] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-07-15 23:21:40.403 INFO 5008 --- [ restartedMain] s.b.c.e.t.TomcatEmbeddedServle tContainer : Tomcat initialized with port(s): 8080 (http)
2017-07-15 23:21:40.857 INFO 5008 --- [ restartedMain] o.apache.catalina.core.Standar dService : Starting service Tomcat
2017-07-15 23:21:40.985 INFO 5008 --- [ restartedMain] org.apache.catalina.core.Stand ardEngine : Starting Servlet Engine: Apache Tomcat/8.5.11
2017-07-15 23:21:45.455 INFO 5008 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost] .[/] : Initializing Spring embedded WebApplicationContext
2017-07-15 23:21:45.456 INFO 5008 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 38371 ms
2017-07-15 23:21:46.295 INFO 5008 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistr ationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-07-15 23:21:46.494 INFO 5008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistra tionBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-07-15 23:21:46.569 INFO 5008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistra tionBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-07-15 23:21:46.569 INFO 5008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistra tionBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-07-15 23:21:46.570 INFO 5008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistra tionBean : Mapping filter: 'requestContextFilter' to: [/*]
2017-07-15 23:21:47.836 WARN 5008 --- [ restartedMain] ationConfigEmbeddedWebApplicat ionContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.fact ory.UnsatisfiedDependencyExcep tion: Error creating bean with name 'inMemoryDatabaseShutdownExecu tor' defined in class path resource [org/springframework/boot/devt ools/autoconfigure/DevToolsDat aSourceAutoConfiguration. class]: Unsatisfied dependency expressed through method 'inMemoryDatabaseShutdownExecu tor' parameter 0; nested exception is org.springframework.beans.fact ory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/auto configure/jdbc/DataSourceConfi guration$Tomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.Bean InstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.D ataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoc onfigure.jdbc.DataSourceProper ties$DataSourceBeanCreationExc eption: Cannot determine embedded database driver class for database type NONE. 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).
2017-07-15 23:21:47.902 INFO 5008 --- [ restartedMain] o.apache.catalina.core.Standar dService : Stopping service Tomcat
2017-07-15 23:21:48.352 INFO 5008 --- [ restartedMain] utoConfigurationReportLoggingI nitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-07-15 23:21:48.380 ERROR 5008 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysis Reporter :
***************************
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).
No comments:
Post a Comment