Advertisement
Guest User

Untitled

a guest
Nov 20th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <profiles>
  2. <profile>
  3. <id>prod</id>
  4. <dependencies>
  5. <dependency>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-tomcat</artifactId>
  8. <scope>provided</scope>
  9. </dependency>
  10.  
  11. <dependency>
  12. <groupId>org.postgresql</groupId>
  13. <artifactId>postgresql</artifactId>
  14. <version>9.4.1211.jre7</version>
  15. </dependency>
  16.  
  17. </dependencies>
  18. </profile>
  19.  
  20. <profile>
  21. <id>dev</id>
  22. <dependencies>
  23. <dependency>
  24. <groupId>com.h2database</groupId>
  25. <artifactId>h2</artifactId>
  26. </dependency>
  27. </dependencies>
  28. </profile>
  29. </profiles>
  30.  
  31. spring.profiles.active = prod
  32.  
  33. spring.jpa.show-sql = true
  34.  
  35. spring.datasource.url = jdbc:postgresql://${RDS_HOSTNAME}:${RDS_PORT}/${RDS_DB_NAME}
  36. spring.datasource.username = ${RDS_USERNAME}
  37. spring.datasource.password = ${RDS_PASSWORD}
  38. spring.jpa.hibernate.ddl-auto = update
  39.  
  40. -Dspring.profiles.active="dev"
  41.  
  42. ***************************
  43. APPLICATION FAILED TO START
  44. ***************************
  45.  
  46. Description:
  47.  
  48. Cannot determine embedded database driver class for database type NONE
  49.  
  50. Action:
  51.  
  52. If you want an embedded database please put a supported one on the classpath.
  53. If you have database settings to be loaded from a particular profile you may need
  54. to active it (the profiles "dev" are currently active).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement