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

未关闭
#1,568 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, java, spring-boot
领域
api, backend, cloud

调研方向

从 AwsSpringHttpProcessingUtils.java 的第 53 行和第 63 行的 AwsSpringHttpProcessingUtils.processRequest 开始,然后检查 SpringDelegatingLambdaContainerHandler.handleRequest。使用 AWS Lambda、Java 21、Spring Boot 3.5.6、Spring Security 6.x 和 aws-serverless-java-container-springboot3 2.1.2 重现该问题。当 ServletRegistration.getMappings() 返回 null 时请求不再失败,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Java
星标
1.6k
派生
575
平均合并
1 天 15 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/serverless-java-container 的其他 Issue

查看 aws/serverless-java-container 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。