Skip to content

NPE in 'AwsSpringHttpProcessingUtils' with Spring Security: 'ServletRegistration.getMappings()' returns null #1568

@shakti2491

Description

@shakti2491

Environment:

AWS Lambda, Java 21
Spring Boot 3.5.6
Spring Security 6.x
Module: 'aws-serverless-java-container-springboot3' (and core)
Handler: 'com.amazonaws.serverless.proxy.spring.SpringDelegatingLambdaContainerHandler'

StackTrace -
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.servlet.handler.HandlerMappingIntrospector.lambda$createCacheFilter$4(HandlerMappingIntrospector.java:267)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.security.config.annotation.web.configuration.WebMvcSecurityConfiguration$CompositeFilterChainProxy.doFilter(WebMvcSecurityConfiguration.java:240)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:362)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:278)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC$ProxyFilterChain.doFilter(ServerlessMVC.java:263)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC$ProxyFilterChain.doFilter(ServerlessMVC.java:263)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:110)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC$ProxyFilterChain.doFilter(ServerlessMVC.java:263)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.codefarmer.gramsahayak.shared.logging.CorrelationIdFilter.doFilterInternal(CorrelationIdFilter.java:31)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC$ProxyFilterChain.doFilter(ServerlessMVC.java:263)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC.service(ServerlessMVC.java:165)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at org.springframework.cloud.function.serverless.web.ServerlessMVC.service(ServerlessMVC.java:160)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.processRequest(AwsSpringHttpProcessingUtils.java:53)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.serverless.proxy.spring.SpringDelegatingLambdaContainerHandler.handleRequest(SpringDelegatingLambdaContainerHandler.java:69)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.services.lambda.runtime.api.client.EventHandlerLoader$2.call(EventHandlerLoader.java:604)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.services.lambda.runtime.api.client.AWSLambda.startRuntimeLoop(AWSLambda.java:317)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.services.lambda.runtime.api.client.AWSLambda.startRuntimeLoops(AWSLambda.java:267)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.services.lambda.runtime.api.client.AWSLambda.main(AWSLambda.java:224)
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
java.lang.NullPointerException: Cannot invoke "java.util.Collection.isEmpty()" because the return value of "jakarta.servlet.ServletRegistration.getMappings()" is null: java.lang.IllegalStateException
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "java.util.Collection.isEmpty()" because the return value of "jakarta.servlet.ServletRegistration.getMappings()" is null
2025-10-15 23:27:51
[2025/10/16/[$LATEST]64e417419ba2527775895de7a6cd2756]
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.processRequest(AwsSpringHttpProcessingUtils.java:63)
20

Dependency Tree -

[INFO] org.codefarmer:gram-sahayak-api:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:3.5.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:3.5.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:3.5.6:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.5.18:compile
[INFO] | | | | - ch.qos.logback:logback-core:jar:1.5.18:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.24.3:compile
[INFO] | | | | - org.apache.logging.log4j:log4j-api:jar:2.24.3:compile
[INFO] | | | - org.slf4j:jul-to-slf4j:jar:2.0.17:compile
[INFO] | | - org.yaml:snakeyaml:jar:2.4:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.5.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-actuator:jar:3.5.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.19.2:compile
[INFO] | | | - com.fasterxml.jackson.core:jackson-annotations:jar:2.19.2:compile
[INFO] | | - com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.19.2:compile
[INFO] | +- io.micrometer:micrometer-observation:jar:1.15.4:compile
[INFO] | | - io.micrometer:micrometer-commons:jar:1.15.4:compile
[INFO] | - io.micrometer:micrometer-jakarta9:jar:1.15.4:compile
[INFO] | - io.micrometer:micrometer-core:jar:1.15.4:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.2.2:runtime
[INFO] | - org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:3.5.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:3.5.6:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.19.2:compile
[INFO] | | - com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.19.2:compile
[INFO] | +- org.springframework:spring-web:jar:6.2.11:compile
[INFO] | - org.springframework:spring-webmvc:jar:6.2.11:compile
[INFO] | - org.springframework:spring-expression:jar:6.2.11:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:3.5.6:test
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:10.1.46:test
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:10.1.46:compile
[INFO] | - org.apache.tomcat.embed:tomcat-embed-websocket:jar:10.1.46:test
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:3.5.6:compile
[INFO] | - org.hibernate.validator:hibernate-validator:jar:8.0.3.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:3.0.2:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.6.1.Final:compile
[INFO] | - com.fasterxml:classmate:jar:1.7.0:compile
[INFO] +- com.amazonaws.serverless:aws-serverless-java-container-springboot3:jar:2.1.2:compile
[INFO] | +- org.springframework.cloud:spring-cloud-function-serverless-web:jar:4.1.5:compile
[INFO] | +- com.amazonaws.serverless:aws-serverless-java-container-core:jar:2.1.2:compile
[INFO] | | +- com.amazonaws:aws-lambda-java-core:jar:1.2.3:compile
[INFO] | | +- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:compile
[INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:3.1.0:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.19.2:compile
[INFO] | | - org.apache.commons:commons-fileupload2-jakarta-servlet6:jar:2.0.0-M2:compile
[INFO] | | +- org.apache.commons:commons-fileupload2-core:jar:2.0.0-M2:compile
[INFO] | | - commons-io:commons-io:jar:2.15.1:compile
[INFO] | - org.slf4j:slf4j-api:jar:2.0.17:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:3.5.6:compile
[INFO] | +- org.springframework:spring-aop:jar:6.2.11:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:6.5.5:compile
[INFO] | - org.springframework.security:spring-security-web:jar:6.5.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-oauth2-resource-server:jar:3.5.6:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:6.5.5:compile
[INFO] | | - org.springframework.security:spring-security-crypto:jar:6.5.5:compile
[INFO] | +- org.springframework.security:spring-security-oauth2-resource-server:jar:6.5.5:compile
[INFO] | | - org.springframework.security:spring-security-oauth2-core:jar:6.5.5:compile
[INFO] | - org.springframework.security:spring-security-oauth2-jose:jar:6.5.5:compile
[INFO] | - com.nimbusds:nimbus-jose-jwt:jar:9.37.4:compile
[INFO] | - com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jdbc:jar:3.5.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:3.5.6:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:6.3.3:compile
[INFO] | | - org.springframework:spring-jdbc:jar:6.2.11:compile
[INFO] | - org.springframework.data:spring-data-jdbc:jar:3.5.4:compile
[INFO] +- org.springframework.data:spring-data-relational:jar:3.5.4:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:3.5.4:compile
[INFO] | +- org.springframework:spring-tx:jar:6.2.11:compile
[INFO] | +- org.springframework:spring-context:jar:6.2.11:compile
[INFO] | +- org.springframework:spring-beans:jar:6.2.11:compile
[INFO] | - org.springframework:spring-core:jar:6.2.11:compile
[INFO] | - org.springframework:spring-jcl:jar:6.2.11:compile
[INFO] +- org.postgresql:postgresql:jar:42.7.7:runtime
[INFO] | - org.checkerframework:checker-qual:jar:3.49.3:runtime
[INFO] +- software.amazon.awssdk:s3:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:aws-xml-protocol:jar:2.26.13:compile
[INFO] | | - software.amazon.awssdk:aws-query-protocol:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:protocol-core:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:arns:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:profiles:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:crt-core:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:http-auth:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:identity-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:http-auth-spi:jar:2.26.13:compile
[INFO] | | - org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] | +- software.amazon.awssdk:http-auth-aws:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:checksums:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:checksums-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:retries-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:sdk-core:jar:2.26.13:compile
[INFO] | | - software.amazon.awssdk:retries:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:http-client-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:annotations:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:utils:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:aws-core:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:metrics-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:json-utils:jar:2.26.13:compile
[INFO] | | - software.amazon.awssdk:third-party-jackson-core:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:endpoints-spi:jar:2.26.13:compile
[INFO] | +- software.amazon.awssdk:apache-client:jar:2.26.13:runtime
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.13:runtime
[INFO] | | | - commons-logging:commons-logging:jar:1.2:runtime
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.16:runtime
[INFO] | | - commons-codec:commons-codec:jar:1.18.0:runtime
[INFO] | - software.amazon.awssdk:netty-nio-client:jar:2.26.13:runtime
[INFO] | +- io.netty:netty-codec-http:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-codec-http2:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-codec:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-transport:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-common:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-buffer:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-handler:jar:4.1.127.Final:runtime
[INFO] | | - io.netty:netty-transport-native-unix-common:jar:4.1.127.Final:runtime
[INFO] | +- io.netty:netty-transport-classes-epoll:jar:4.1.127.Final:runtime
[INFO] | - io.netty:netty-resolver:jar:4.1.127.Final:runtime
[INFO] +- software.amazon.awssdk:auth:jar:2.26.13:compile
[INFO] | - software.amazon.eventstream:eventstream:jar:1.0.1:compile
[INFO] +- software.amazon.awssdk:regions:jar:2.26.13:compile
[INFO] +- com.github.vladimir-bukhtoyarov:bucket4j-core:jar:7.6.0:compile
[INFO] +- org.springframework.ai:spring-ai-openai:jar:1.0.0-M6:compile
[INFO] | +- org.springframework.ai:spring-ai-core:jar:1.0.0-M6:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jsonSchema:jar:2.19.2:compile
[INFO] | | | - javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | +- io.swagger.core.v3:swagger-annotations:jar:2.2.25:compile
[INFO] | | +- com.github.victools:jsonschema-module-swagger-2:jar:4.37.0:compile
[INFO] | | +- org.antlr:ST4:jar:4.3.4:compile
[INFO] | | | - org.antlr:antlr-runtime:jar:3.5.3:compile
[INFO] | | +- org.antlr:antlr4-runtime:jar:4.13.1:compile
[INFO] | | +- io.projectreactor:reactor-core:jar:3.7.11:compile
[INFO] | | +- org.springframework:spring-messaging:jar:6.2.11:compile
[INFO] | | +- io.micrometer:context-propagation:jar:1.1.3:compile
[INFO] | | - com.knuddels:jtokkit:jar:1.1.0:compile
[INFO] | +- org.springframework.ai:spring-ai-retry:jar:1.0.0-M6:compile
[INFO] | | +- org.springframework.retry:spring-retry:jar:2.0.12:compile
[INFO] | | - org.springframework:spring-webflux:jar:6.2.11:compile
[INFO] | +- io.rest-assured:json-path:jar:5.5.6:compile
[INFO] | | +- org.apache.groovy:groovy-json:jar:4.0.28:compile
[INFO] | | +- org.apache.groovy:groovy:jar:4.0.28:compile
[INFO] | | - io.rest-assured:rest-assured-common:jar:5.5.6:compile
[INFO] | | - org.apache.commons:commons-lang3:jar:3.17.0:compile
[INFO] | +- com.github.victools:jsonschema-generator:jar:4.37.0:compile
[INFO] | | - com.fasterxml.jackson.core:jackson-core:jar:2.19.2:compile
[INFO] | +- com.github.victools:jsonschema-module-jackson:jar:4.37.0:compile
[INFO] | - org.springframework:spring-context-support:jar:6.2.11:compile
[INFO] +- org.springdoc:springdoc-openapi-starter-webmvc-ui:jar:2.7.0:compile
[INFO] | +- org.springdoc:springdoc-openapi-starter-webmvc-api:jar:2.7.0:compile
[INFO] | | - org.springdoc:springdoc-openapi-starter-common:jar:2.7.0:compile
[INFO] | | - io.swagger.core.v3:swagger-core-jakarta:jar:2.2.25:compile
[INFO] | | +- io.swagger.core.v3:swagger-annotations-jakarta:jar:2.2.25:compile
[INFO] | | +- io.swagger.core.v3:swagger-models-jakarta:jar:2.2.25:compile
[INFO] | | - com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.19.2:compile
[INFO] | +- org.webjars:swagger-ui:jar:5.18.2:compile
[INFO] | - org.webjars:webjars-locator-lite:jar:1.1.0:compile
[INFO] | - org.jspecify:jspecify:jar:1.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:3.5.6:runtime (optional)
[INFO] | +- org.springframework.boot:spring-boot:jar:3.5.6:compile
[INFO] | - org.springframework.boot:spring-boot-autoconfigure:jar:3.5.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.5.6:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:3.5.6:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.5.6:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.9.0:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.2:compile
[INFO] | | - jakarta.activation:jakarta.activation-api:jar:2.1.4:compile
[INFO] | +- net.minidev:json-smart:jar:2.5.2:test
[INFO] | | - net.minidev:accessors-smart:jar:2.5.2:test
[INFO] | | - org.ow2.asm:asm:jar:9.7.1:test
[INFO] | +- org.assertj:assertj-core:jar:3.27.4:test
[INFO] | | - net.bytebuddy:byte-buddy:jar:1.17.7:test
[INFO] | +- org.hamcrest:hamcrest:jar:3.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.12.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.12.2:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.3.0:test
[INFO] | | | +- org.junit.platform:junit-platform-commons:jar:1.12.2:test
[INFO] | | | - org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.12.2:test
[INFO] | | - org.junit.jupiter:junit-jupiter-engine:jar:5.12.2:test
[INFO] | | - org.junit.platform:junit-platform-engine:jar:1.12.2:test
[INFO] | +- org.mockito:mockito-core:jar:5.17.0:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.17.7:test
[INFO] | | - org.objenesis:objenesis:jar:3.3:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:5.17.0:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.3:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:6.2.11:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.10.4:test
[INFO] +- org.springframework.security:spring-security-test:jar:6.5.5:test
[INFO] +- org.springframework.boot:spring-boot-testcontainers:jar:3.5.6:test
[INFO] | - org.testcontainers:testcontainers:jar:1.20.1:test
[INFO] | +- junit:junit:jar:4.13.2:test
[INFO] | | - org.hamcrest:hamcrest-core:jar:3.0:test
[INFO] | +- org.apache.commons:commons-compress:jar:1.24.0:test
[INFO] | +- org.rnorth.duct-tape:duct-tape:jar:1.0.8:test
[INFO] | | - org.jetbrains:annotations:jar:17.0.0:test
[INFO] | +- com.github.docker-java:docker-java-api:jar:3.4.0:test
[INFO] | - com.github.docker-java:docker-java-transport-zerodep:jar:3.4.0:test
[INFO] | +- com.github.docker-java:docker-java-transport:jar:3.4.0:test
[INFO] | - net.java.dev.jna:jna:jar:5.13.0:test
[INFO] +- org.testcontainers:postgresql:jar:1.20.1:test
[INFO] | - org.testcontainers:jdbc:jar:1.20.1:test
[INFO] | - org.testcontainers:database-commons:jar:1.20.1:test
[INFO] +- org.testcontainers:junit-jupiter:jar:1.20.1:test
[INFO] +- org.testcontainers:localstack:jar:1.20.1:test
[INFO] - org.awaitility:awaitility:jar:4.2.2:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

Spring Security Config
@bean
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.csrf(AbstractHttpConfigurer::disable)
.cors(Customizer.withDefaults())
.sessionManagement(
session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(auth -> auth
.requestMatchers( "/actuator/health", "/v3/api-docs/", "/swagger-ui.html", "/swagger-ui/").permitAll()
.anyRequest().authenticated())
.oauth2ResourceServer(oauth -> oauth.jwt(jwt -> jwt.jwtAuthenticationConverter(jwtAuthenticationConverter())));
return http.build();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions