Guest User

Untitled

a guest
Mar 23rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. server.port=8888
  2. spring.profiles.active=native
  3.  
  4. spring.cloud.config.uri=localhost:8888
  5.  
  6. spring.datasource.url=jdbc:postgresql://localhost/vcu
  7. spring.datasource.username=postgres
  8. spring.datasource.password=postgresql
  9.  
  10. spring.datasource.url=jdbc:postgresql://localhost/sp
  11. spring.datasource.username=postgres
  12. spring.datasource.password=postgresql
  13.  
  14. @SpringBootApplication
  15. @EnableConfigServer
  16. public class ConfigServerApplication {
  17.  
  18. public static void main(String[] args) {
  19. SpringApplication.run(ConfigServerApplication.class, args);
  20. }
  21. }
  22.  
  23. server.port=8080
  24. spring.cloud.config.uri=localhost:8888
  25.  
  26. java -jar ConfigServer-0.0.1-SNAPSHOT.war
  27.  
  28. java -jar -Dsping.profiles.active=vcu ConfigClient-0.0.1-SNAPSHOT.war
  29.  
  30. 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