Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <profiles>
- <profile>
- <id>prod</id>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>9.4.1211.jre7</version>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>dev</id>
- <dependencies>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- spring.profiles.active = prod
- spring.jpa.show-sql = true
- spring.datasource.url = jdbc:postgresql://${RDS_HOSTNAME}:${RDS_PORT}/${RDS_DB_NAME}
- spring.datasource.username = ${RDS_USERNAME}
- spring.datasource.password = ${RDS_PASSWORD}
- spring.jpa.hibernate.ddl-auto = update
- -Dspring.profiles.active="dev"
- ***************************
- 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 (the profiles "dev" are currently active).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement