mysql - Spring boot app - How to make database connection? -
i'm trying create first spring boot application , have issu database connection.
at run, have
java.sql.sqlexception : driver.com.musql.jdbc.driver return null
( complete error @ bottom)
when i'm connecting localhost's database without spring boot working perfectly, tested piece of code :
try { class.forname("com.mysql.jdbc.driver"); java.sql.connection connection = drivermanager .getconnection("jdbc:mysql://127.0.0.1:3306/logsdb","logsdb", "logsdb"); system.out.println("connection ok"); system.out.println(connection.getcatalog()); } catch (sqlexception e) { system.out.println("connection failed! check output console"); e.printstacktrace(); return; }
this return database created in localhost.
but not working spring boot.
i followed tutorial : http://spring.io/guides/gs/batch-processing/#scratch
screen of structure of project on link
my pom.xml :
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.toto.logsdb</groupid> <artifactid>logsdb</artifactid> <version>0.0.1-snapshot</version> <packaging>jar</packaging> <parent> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>1.3.1.release</version> </parent> <properties> <java.version>1.7</java.version> </properties> <dependencies> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-batch</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-jdbc</artifactid> </dependency> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> </plugins> </build>
my "application.properties" :
spring.datasource.url= jdbc:mysql//localhost:3306/logsdb spring.datasource.username=logsdb spring.datasource.password=logsdb spring.datasource.driverclassname=com.mysql.jdbc.driver
the error :
2016-01-27 14:18:12.396 info 3436 --- [ main] c.toto.logsdb.application.application : starting application on eb-or6105938 pid 3436 (c:\workspacelogs\target\classes started ggff7580 in c:\workspacelogs) 2016-01-27 14:18:12.398 info 3436 --- [ main] c.toto.logsdb.application.application : no active profile set, falling default profiles: default 2016-01-27 14:18:12.425 info 3436 --- [ main] s.c.a.annotationconfigapplicationcontext : refreshing org.springframework.context.annotation.annotationconfigapplicationcontext@10f93f9: startup date [wed jan 27 14:18:12 cet 2016]; root of context hierarchy 2016-01-27 14:18:12.807 warn 3436 --- [ main] o.s.c.a.configurationclassenhancer : @bean method scopeconfiguration.stepscope non-static , returns object assignable spring's beanfactorypostprocessor interface. result in failure process annotations such @autowired, @resource , @postconstruct within method's declaring @configuration class. add 'static' modifier method avoid these container lifecycle issues; see @bean javadoc complete details. 2016-01-27 14:18:12.814 warn 3436 --- [ main] o.s.c.a.configurationclassenhancer : @bean method scopeconfiguration.jobscope non-static , returns object assignable spring's beanfactorypostprocessor interface. result in failure process annotations such @autowired, @resource , @postconstruct within method's declaring @configuration class. add 'static' modifier method avoid these container lifecycle issues; see @bean javadoc complete details. 2016-01-27 14:18:13.112 error 3436 --- [ main] o.a.tomcat.jdbc.pool.connectionpool : unable create initial connections of pool. **java.sql.sqlexception: driver:com.mysql.jdbc.driver@9ff430 returned null url:jdbc:mysql//localhost:3306/logsdb** @ org.apache.tomcat.jdbc.pool.pooledconnection.connectusingdriver(pooledconnection.java:326) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.pooledconnection.connect(pooledconnection.java:200) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.createconnection(connectionpool.java:708) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.borrowconnection(connectionpool.java:642) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.init(connectionpool.java:464) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.<init>(connectionpool.java:141) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.pcreatepool(datasourceproxy.java:115) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.createpool(datasourceproxy.java:102) [tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.getconnection(datasourceproxy.java:126) [tomcat-jdbc-8.0.30.jar:na] @ org.springframework.jdbc.datasource.datasourceutils.dogetconnection(datasourceutils.java:111) [spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.datasource.datasourceutils.getconnection(datasourceutils.java:77) [spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.support.jdbcutils.extractdatabasemetadata(jdbcutils.java:289) [spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.support.jdbcutils.extractdatabasemetadata(jdbcutils.java:329) [spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.batch.support.databasetype.frommetadata(databasetype.java:95) [spring-batch-infrastructure-3.0.6.release.jar:3.0.6.release] @ org.springframework.boot.autoconfigure.batch.batchdatabaseinitializer.getdatabasetype(batchdatabaseinitializer.java:71) [spring-boot-autoconfigure-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.autoconfigure.batch.batchdatabaseinitializer.initialize(batchdatabaseinitializer.java:50) [spring-boot-autoconfigure-1.3.1.release.jar:1.3.1.release] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.7.0_21] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) ~[na:1.7.0_21] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.7.0_21] @ java.lang.reflect.method.invoke(method.java:601) ~[na:1.7.0_21] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecycleelement.invoke(initdestroyannotationbeanpostprocessor.java:354) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecyclemetadata.invokeinitmethods(initdestroyannotationbeanpostprocessor.java:305) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor.postprocessbeforeinitialization(initdestroyannotationbeanpostprocessor.java:133) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1570) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:545) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:772) [spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:839) [spring-context-4.2.4.release.jar:4.2.4.release] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:538) [spring-context-4.2.4.release.jar:4.2.4.release] @ org.springframework.boot.springapplication.refresh(springapplication.java:764) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.dorun(springapplication.java:357) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:305) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:1124) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:1113) [spring-boot-1.3.1.release.jar:1.3.1.release] @ com.toto.logsdb.application.application.main(application.java:37) [classes/:na] 2016-01-27 14:18:13.113 warn 3436 --- [ main] s.c.a.annotationconfigapplicationcontext : exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.beancreationexception: error creating bean name 'batchdatabaseinitializer': invocation of init method failed; nested exception java.lang.illegalstateexception: unable detect database type 2016-01-27 14:18:13.114 info 3436 --- [ main] o.s.j.e.a.annotationmbeanexporter : unregistering jmx-exposed beans on shutdown 2016-01-27 14:18:13.115 error 3436 --- [ main] o.s.boot.springapplication : application startup failed org.springframework.beans.factory.beancreationexception: error creating bean name 'batchdatabaseinitializer': invocation of init method failed; nested exception **java.lang.illegalstateexception**: **unable detect database type** @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor.postprocessbeforeinitialization(initdestroyannotationbeanpostprocessor.java:136) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1570) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:545) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:772) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:839) ~[spring-context-4.2.4.release.jar:4.2.4.release] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:538) ~[spring-context-4.2.4.release.jar:4.2.4.release] @ org.springframework.boot.springapplication.refresh(springapplication.java:764) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.dorun(springapplication.java:357) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:305) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:1124) [spring-boot-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.springapplication.run(springapplication.java:1113) [spring-boot-1.3.1.release.jar:1.3.1.release] @ com.toto.logsdb.application.application.main(application.java:37) [classes/:na] caused by: java.lang.illegalstateexception: unable detect database type @ org.springframework.boot.autoconfigure.batch.batchdatabaseinitializer.getdatabasetype(batchdatabaseinitializer.java:74) ~[spring-boot-autoconfigure-1.3.1.release.jar:1.3.1.release] @ org.springframework.boot.autoconfigure.batch.batchdatabaseinitializer.initialize(batchdatabaseinitializer.java:50) ~[spring-boot-autoconfigure-1.3.1.release.jar:1.3.1.release] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.7.0_21] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) ~[na:1.7.0_21] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.7.0_21] @ java.lang.reflect.method.invoke(method.java:601) ~[na:1.7.0_21] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecycleelement.invoke(initdestroyannotationbeanpostprocessor.java:354) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecyclemetadata.invokeinitmethods(initdestroyannotationbeanpostprocessor.java:305) ~[spring-beans-4.2.4.release.jar:4.2.4.release] @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor.postprocessbeforeinitialization(initdestroyannotationbeanpostprocessor.java:133) ~[spring-beans-4.2.4.release.jar:4.2.4.release] ... 17 common frames omitted caused by: org.springframework.jdbc.support.metadataaccessexception: not connection extracting meta data; nested exception **org.springframework.jdbc.cannotgetjdbcconnectionexception: not jdbc connection; nested exception java.sql.sqlexception: driver:com.mysql.jdbc.driver@9ff430 returned null url:jdbc:mysql//localhost:3306/logsdb** @ org.springframework.jdbc.support.jdbcutils.extractdatabasemetadata(jdbcutils.java:302) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.support.jdbcutils.extractdatabasemetadata(jdbcutils.java:329) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.batch.support.databasetype.frommetadata(databasetype.java:95) ~[spring-batch-infrastructure-3.0.6.release.jar:3.0.6.release] @ org.springframework.boot.autoconfigure.batch.batchdatabaseinitializer.getdatabasetype(batchdatabaseinitializer.java:71) ~[spring-boot-autoconfigure-1.3.1.release.jar:1.3.1.release] ... 25 common frames omitted caused by: **org.springframework.jdbc.cannotgetjdbcconnectionexception: not jdbc connection**; nested exception java.sql.sqlexception: driver:com.mysql.jdbc.driver@9ff430 returned null url:jdbc:mysql//localhost:3306/logsdb @ org.springframework.jdbc.datasource.datasourceutils.getconnection(datasourceutils.java:80) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.support.jdbcutils.extractdatabasemetadata(jdbcutils.java:289) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] ... 28 common frames omitted caused by: java.sql.sqlexception: driver:com.mysql.jdbc.driver@9ff430 returned null url:jdbc:mysql//localhost:3306/logsdb @ org.apache.tomcat.jdbc.pool.pooledconnection.connectusingdriver(pooledconnection.java:326) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.pooledconnection.connect(pooledconnection.java:200) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.createconnection(connectionpool.java:708) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.borrowconnection(connectionpool.java:642) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.init(connectionpool.java:464) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.connectionpool.<init>(connectionpool.java:141) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.pcreatepool(datasourceproxy.java:115) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.createpool(datasourceproxy.java:102) ~[tomcat-jdbc-8.0.30.jar:na] @ org.apache.tomcat.jdbc.pool.datasourceproxy.getconnection(datasourceproxy.java:126) ~[tomcat-jdbc-8.0.30.jar:na] @ org.springframework.jdbc.datasource.datasourceutils.dogetconnection(datasourceutils.java:111) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] @ org.springframework.jdbc.datasource.datasourceutils.getconnection(datasourceutils.java:77) ~[spring-jdbc-4.2.4.release.jar:4.2.4.release] ... 29 common frames omitted 2016-01-27 14:18:13.117 info 3436 --- [ main] .b.l.classpathloggingapplicationlistener : application failed start classpath: [file:/c:/workspacelogs/target/classes/, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot-starter-batch/1.3.1.release/spring-boot-starter-batch-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot-starter/1.3.1.release/spring-boot-starter-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot/1.3.1.release/spring-boot-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.1.release/spring-boot-autoconfigure-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.1.release/spring-boot-starter-logging-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar, file:/c:/users/ggff7580/documents/maven2/repository/ch/qos/logback/logback-core/1.1.3/logback-core-1.1.3.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/slf4j/jcl-over-slf4j/1.7.13/jcl-over-slf4j-1.7.13.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/slf4j/jul-to-slf4j/1.7.13/jul-to-slf4j-1.7.13.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/slf4j/log4j-over-slf4j/1.7.13/log4j-over-slf4j-1.7.13.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-core/4.2.4.release/spring-core-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/hsqldb/hsqldb/2.3.3/hsqldb-2.3.3.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-jdbc/4.2.4.release/spring-jdbc-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-beans/4.2.4.release/spring-beans-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-tx/4.2.4.release/spring-tx-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/batch/spring-batch-core/3.0.6.release/spring-batch-core-3.0.6.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/com/ibm/jbatch/com.ibm.jbatch-tck-spi/1.0/com.ibm.jbatch-tck-spi-1.0.jar, file:/c:/users/ggff7580/documents/maven2/repository/javax/batch/javax.batch-api/1.0/javax.batch-api-1.0.jar, file:/c:/users/ggff7580/documents/maven2/repository/com/thoughtworks/xstream/xstream/1.4.7/xstream-1.4.7.jar, file:/c:/users/ggff7580/documents/maven2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/c:/users/ggff7580/documents/maven2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/codehaus/jettison/jettison/1.2/jettison-1.2.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/batch/spring-batch-infrastructure/3.0.6.release/spring-batch-infrastructure-3.0.6.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/retry/spring-retry/1.1.2.release/spring-retry-1.1.2.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-aop/4.2.4.release/spring-aop-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-context/4.2.4.release/spring-context-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/spring-expression/4.2.4.release/spring-expression-4.2.4.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/springframework/boot/spring-boot-starter-jdbc/1.3.1.release/spring-boot-starter-jdbc-1.3.1.release.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/apache/tomcat/tomcat-jdbc/8.0.30/tomcat-jdbc-8.0.30.jar, file:/c:/users/ggff7580/documents/maven2/repository/org/apache/tomcat/tomcat-juli/8.0.30/tomcat-juli-8.0.30.jar, file:/c:/users/ggff7580/documents/maven2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar]
i read lot of posts on stackoverflow wasn't able find solution, if have idea..
best regards, jimmy
you have spelling error in jdbc url. should (notice :
):
spring.datasource.url= jdbc:mysql://localhost:3306/logsdb
Comments
Post a Comment