Guest User

Untitled

a guest
Dec 3rd, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. ./mvnw package && java -jar target/ff-back-boilerplate-0.0.1-SNAPSHOT.jar
  2.  
  3. Failed to bind properties under 'spring.datasource' to javax.sql.DataSource:
  4.  
  5. Property: spring.datasource.driver-class-name
  6. Value: oracle.jdbc.OracleDriver
  7. Origin: class path resource [application.yml]:22:24
  8. Reason: Failed to load driver class oracle.jdbc.OracleDriver in either of HikariConfig class
  9. loader or Thread context classloader
  10.  
  11. Action:
  12.  
  13. Update your application's configuration
  14.  
  15. mvn install:install-file -Dfile=ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0 -Dpackaging=jar
  16.  
  17. management:
  18. endpoints:
  19. web:
  20. exposure:
  21. include: "*"
  22.  
  23. spring:
  24. jpa:
  25. database: default
  26. properties.hibernate.id.new_generator_mappings: false
  27.  
  28.  
  29. datasource:
  30. #Oracle DB - PROTPROD
  31. jdbc-url: jdbc:oracle:thin:@erp12.*****.com:1521/orcl
  32. username: *******
  33. password: *******
  34. driver-class-name: oracle.jdbc.OracleDriver
  35.  
  36.  
  37. mysql-local:
  38. datasource:
  39. #Mysql DB - test
  40. jdbc-url: jdbc:mysql://localhost:3306/test
  41. username: felipe
  42. password: password
  43. driver-class-name: com.mysql.jdbc.Driver
  44.  
  45.  
  46. security:
  47. oauth2:
  48. resource:
  49. user-info-uri: https://orion44.*****.com/me
Add Comment
Please, Sign In to add comment