Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.port=8888
- spring.profiles.active=native
- spring.cloud.config.uri=localhost:8888
- spring.datasource.url=jdbc:postgresql://localhost/vcu
- spring.datasource.username=postgres
- spring.datasource.password=postgresql
- spring.datasource.url=jdbc:postgresql://localhost/sp
- spring.datasource.username=postgres
- spring.datasource.password=postgresql
- @SpringBootApplication
- @EnableConfigServer
- public class ConfigServerApplication {
- public static void main(String[] args) {
- SpringApplication.run(ConfigServerApplication.class, args);
- }
- }
- server.port=8080
- spring.cloud.config.uri=localhost:8888
- java -jar ConfigServer-0.0.1-SNAPSHOT.war
- java -jar -Dsping.profiles.active=vcu ConfigClient-0.0.1-SNAPSHOT.war
- Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
Add Comment
Please, Sign In to add comment