Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spring:
- application:
- name: mark2
- server:
- port: 9998
- ssl:
- enabled: true
- key-store: classpath:keystore.p12
- key-store-password: changeit
- key-store-type: PKCS12
- keyAlias: mark2
- http:
- client:
- ssl:
- trust-store: classpath:keystore.p12
- trust-store-password: changeit
- eureka:
- client:
- serviceUrl:
- defaultZone: https://user:pass@localhost:9001/eureka
- spring:
- application:
- name: mark2
- cloud:
- config:
- username: user
- password: password
- discovery:
- enabled: true
- serviceId: EUREKA-DISCOVERY-SERVICE
- failFast: true
- name: my
- profile: settings
- # label: v1
- http:
- client:
- ssl:
- trust-store: classpath:keystore.p12
- trust-store-password: changeit
- eureka:
- client:
- serviceUrl:
- defaultZone: https://user:password@localhost:9001/eureka
- instance:
- metadataMap:
- user: user
- password: password
- configPath: /config
- bootRun {
- jvmArgs = [
- "-Djavax.net.ssl.trustStore=/absolute/path/to/keystore.p12",
- "-Djavax.net.ssl.trustStorePassword=changeit",
- "-Djavax.net.ssl.trustStoreType=PKCS12",
- ]
- }
- Field optionalArgs in org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration required a single bean, but 2 were found:
- - getTrustStoredEurekaClient: defined by method 'getTrustStoredEurekaClient' in class path resource [de/mark2/SslConfiguration.class]
- - discoveryClientOptionalArgs: defined by method 'discoveryClientOptionalArgs' in org.springframework.cloud.netflix.eureka.config.DiscoveryClientOptionalArgsConfiguration
- dependencies {
- compile("org.springframework.boot:spring-boot-starter") {
- exclude module: "tomcat-embed-el"
- }
- compile("org.springframework.boot:spring-boot-starter-web") {
- exclude module: "spring-boot-starter-tomcat"
- }
- compile('org.springframework.boot:spring-boot-starter-undertow')
- ...
- }
Add Comment
Please, Sign In to add comment