Skip to content

Instantly share code, notes, and snippets.

View spencergibb's full-sized avatar

Spencer Gibb spencergibb

View GitHub Profile
@spencergibb
spencergibb / list.txt
Created December 13, 2024 15:44
sdkman.io jdk list
Corretto | | 23.0.1 | amzn | | 23.0.1-amzn
| | 21.0.5 | amzn | | 21.0.5-amzn
| | 17.0.13 | amzn | | 17.0.13-amzn
| | 11.0.25 | amzn | | 11.0.25-amzn
| | 8.0.432 | amzn | | 8.0.432-amzn
Gluon | | 22.1.0.1.r17 | gln | | 22.1.0.1.r17-gln
| | 22.1.0.1.r11 | gln | | 22.1.0.1.r11-gln
GraalVM CE | | 23.0.1 | graalce | | 23.0.1-graalce
| | 21.0.2 | graalce | | 21.0.2-graalce
| | 17.0.9 | graalce | | 17.0.9-graalce
@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 / 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;