Guest User

Untitled

a guest
Apr 12th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. Caused by: java.lang.IllegalArgumentException: URL must start with 'jdbc'
  2. at org.springframework.util.Assert.isTrue(Assert.java:116) ~[spring-core-5.0.5.RELEASE.jar:5.0.5.RELEASE]
  3. at org.springframework.boot.jdbc.DatabaseDriver.fromJdbcUrl(DatabaseDriver.java:268) ~[spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
  4. at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:230) ~[spring-boot-autoconfigure-2.0.1.RELEASE.jar:2.0.1.RELEASE]
  5. at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176) ~[spring-boot-autoconfigure-2.0.1.RELEASE.jar:2.0.1.RELEASE]
  6. at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:43) ~[spring-boot-autoconfigure-2.0.1.RELEASE.jar:2.0.1.RELEASE]
  7. at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:81) ~[spring-boot-autoconfigure-2.0.1.RELEASE.jar:2.0.1.RELEASE]
  8. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
  9. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_161]
  10. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_161]
  11. at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_161]
  12. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
  13. ... 40 common frames omitted
  14.  
  15. #======================
  16. # DATA SOURCE
  17. #=====================
  18.  
  19. spring.datasource.url="jdbc:mysql://localhost:3306/customerdb?useSSL=false"
  20. spring.datasource.username=root
  21. spring.datasource.password=root
  22. #spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  23. spring.datasource.dbcp2.test-while-idle=true
  24. spring.datasource.dbcp2.validation-query= SELECT 1
  25.  
  26.  
  27. #============================
  28. # JPA/Hibernate
  29. #===========================
  30. spring.jpa.show-sql=true
  31. spring.jpa.hibernate.ddl-auto=create-drop
  32. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
  33. spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  34.  
  35. #===================================================================
  36. # Spring Security / Queries for AuthenticationManagerBuilder
  37. #===================================================================
  38. spring.queries.users-query=select email,password active form user where email=?
  39. spring.queries.roles-query=select u.email, r.role from user u inner join user_role ur on(u.user_id=ur.user_id) inner join role r on(ur.role_id=r.role_id) where u.email=?
  40.  
  41. # ===============================
  42. # Thymeleaf configurations
  43. # ===============================
  44. spring.thymeleaf.mode=LEGACYHTML5
  45. spring.thymeleaf.cache=false
  46.  
  47. #====================================
  48. #LOGGING
  49. #====================================
  50. logging.level.root=warn
  51. logging.level.org.org.springframework.web=debug
  52. logging.level.org.org.Hibernate=error
  53.  
  54. spring.datasource.url="jdbc:mysql://localhost:3306/customerdb?useSSL=false"
  55.  
  56. spring.datasource.url=jdbc:mysql://localhost:3306/customerdb?useSSL=false
Add Comment
Please, Sign In to add comment