Skip to content

Instantly share code, notes, and snippets.

View spencergibb's full-sized avatar

Spencer Gibb spencergibb

View GitHub Profile
@spencergibb
spencergibb / application.yml
Created February 1, 2022 20:00
prefix path long form
filters:
- name: PrefixPath
args:
prefix: ${foo.bar.uri}
https://github.com/spring-cloud/spring-cloud-build/blob/master/pom.xml#L793-L808
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
@spencergibb
spencergibb / pom.xml
Created June 26, 2020 21:02
spring-cloud-kubernetes import 1.1.4
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-kubernetes-dependencies</artifactId>
<version>1.1.4.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
@spencergibb
spencergibb / downstream_failure.log
Last active September 19, 2019 17:59
Gateway form encoding issue
2019-09-19 13:58:17.809 TRACE 18390 --- [or-http-epoll-2] o.s.w.s.adapter.HttpWebHandlerAdapter : [4d1329b6] HTTP POST "/test/post", headers={masked}
2019-09-19 13:58:17.827 DEBUG 18390 --- [or-http-epoll-2] s.w.r.r.m.a.RequestMappingHandlerMapping : [4d1329b6] Mapped to public reactor.core.publisher.Mono<java.util.Map<java.lang.String, java.lang.Object>> com.example.demomicro.TestController.postFormData(reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String, org.springframework.http.codec.multipart.Part>>)
2019-09-19 13:58:17.837 DEBUG 18390 --- [or-http-epoll-2] .s.w.r.r.m.a.RequestBodyArgumentResolver : [4d1329b6] Content-Type:multipart/form-data;boundary=6xmVKPs6jEMPmtVOhUsIphH57h62dXxcix0;charset=UTF-8
2019-09-19 13:58:17.837 DEBUG 18390 --- [or-http-epoll-2] .s.w.r.r.m.a.RequestBodyArgumentResolver : [4d1329b6] 0..1 [org.springframework.util.MultiValueMap<java.lang.String, org.springframework.http.codec.multipart.Part>]
2019-09-19 13:58:17.841 ERROR 18390 --- [or-http-epo
org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded
Failing for the past 11 builds (Since Failed#924 )
Took 22 ms.
add description
Error Message
Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
Stacktrace
java.lang.IllegalStateException: Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.lambda$testConfigurationValuesAreCorrectlyLoaded$1(GcpConfigBootstrapConfigurationTest.java:60)
2019-02-21 09:59:43.319 INFO 23026 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-02-21 09:59:44.023 INFO 23026 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=foo, profiles=[default], label=null, version=6cbb61bc9210978131bb36e78850f6460f6f2976, state=null
2019-02-21 09:59:44.024 INFO 23026 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='configService', propertySources=[MapPropertySource {name='configClient'}, MapPropertySource {name='/home/spencer/Desktop/config/foo.properties'}, MapPropertySource {name='/home/spencer/Desktop/config/application.yml'}]}
server:
port: 8443
http:
port: 8080
servlet:
# enable HTTP2
# http2:
# enabled: true
# enable compression
compression:
package com.example.demorsocket.channel;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import io.rsocket.AbstractRSocket;
import io.rsocket.ConnectionSetupPayload;
import io.rsocket.Payload;
import io.rsocket.RSocket;
import io.rsocket.RSocketFactory;
package com.example.demogatewaypathtoparam;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.http.server.reactive.ServerHttpRequest;
@spencergibb
spencergibb / gateway-linux.log
Created April 20, 2018 17:31
spring cloud gateway 262 logs
/home/spencer/.sdkman/candidates/java/8u152-zulu/bin/java -Dvisualvm.id=711222280897947 -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=35575 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:/home/spencer/apps/idea-IU-173.4127.27/lib/idea_rt.jar=40557:/home/spencer/apps/idea-IU-173.4127.27/bin -Dfile.encoding=UTF-8 -classpath /home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/charsets.jar:/home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/ext/cldrdata.jar:/home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/ext/dnsns.jar:/home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/ext/jaccess.jar:/home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/ext/localedata.jar:/home/spencer/.sdkman/candidates/java/8u152-zulu/jre/lib/ext/nashorn.jar:/home