Guest User

Untitled

a guest
Jun 21st, 2018
1,493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. spring:
  2. application:
  3. name: mark2
  4.  
  5. server:
  6. port: 9998
  7. ssl:
  8. enabled: true
  9. key-store: classpath:keystore.p12
  10. key-store-password: changeit
  11. key-store-type: PKCS12
  12. keyAlias: mark2
  13.  
  14. http:
  15. client:
  16. ssl:
  17. trust-store: classpath:keystore.p12
  18. trust-store-password: changeit
  19.  
  20. eureka:
  21. client:
  22. serviceUrl:
  23. defaultZone: https://user:pass@localhost:9001/eureka
  24.  
  25. spring:
  26. application:
  27. name: mark2
  28. cloud:
  29. config:
  30. username: user
  31. password: password
  32. discovery:
  33. enabled: true
  34. serviceId: EUREKA-DISCOVERY-SERVICE
  35. failFast: true
  36. name: my
  37. profile: settings
  38. # label: v1
  39.  
  40. http:
  41. client:
  42. ssl:
  43. trust-store: classpath:keystore.p12
  44. trust-store-password: changeit
  45.  
  46. eureka:
  47. client:
  48. serviceUrl:
  49. defaultZone: https://user:password@localhost:9001/eureka
  50. instance:
  51. metadataMap:
  52. user: user
  53. password: password
  54. configPath: /config
  55.  
  56. bootRun {
  57. jvmArgs = [
  58. "-Djavax.net.ssl.trustStore=/absolute/path/to/keystore.p12",
  59. "-Djavax.net.ssl.trustStorePassword=changeit",
  60. "-Djavax.net.ssl.trustStoreType=PKCS12",
  61. ]
  62. }
  63.  
  64. Field optionalArgs in org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration required a single bean, but 2 were found:
  65. - getTrustStoredEurekaClient: defined by method 'getTrustStoredEurekaClient' in class path resource [de/mark2/SslConfiguration.class]
  66. - discoveryClientOptionalArgs: defined by method 'discoveryClientOptionalArgs' in org.springframework.cloud.netflix.eureka.config.DiscoveryClientOptionalArgsConfiguration
  67.  
  68. dependencies {
  69. compile("org.springframework.boot:spring-boot-starter") {
  70. exclude module: "tomcat-embed-el"
  71. }
  72. compile("org.springframework.boot:spring-boot-starter-web") {
  73. exclude module: "spring-boot-starter-tomcat"
  74. }
  75. compile('org.springframework.boot:spring-boot-starter-undertow')
  76. ...
  77. }
Add Comment
Please, Sign In to add comment