这是indexloc提供的服务,不要输入任何密码
Skip to content

spring-security-oauth2-bff Module fails to compile due to incorrect Java version #18939

@DanielDowns

Description

@DanielDowns

Article and Module Links
spring-security-oauth2-bff

Describe the Issue
spring-security-oauth2-bff/backend fails to compile.

[ERROR] tutorials/spring-security-modules/spring-security-oauth2-bff/backend/bff/src/main/java/com/baeldung/bff/LoginOptionsController.java:[53,19] records are not supported in -source 8 (use -source 16 or higher to enable records)

To Reproduce
Follow the instructions listed here: https://www.baeldung.com/spring-cloud-gateway-bff-oauth2

git clone https://github.com/eugenp/tutorials.git
cd tutorials/spring-security-modules/spring-security-oauth2-bff/
sh ./build.sh

or the more self contained version:

git clone https://github.com/eugenp/tutorials.git
cd tutorials/spring-security-modules/spring-security-oauth2-bff/backend
mvn install

Expected Behavior
Module compiles correctly

Screenshots

Image

Environment (please complete the following information):

  • Ubuntu 24 WSL on Windows 10: [e.g. Windows]

Additional Context
Add any other context about the issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssues reviewed by a dev and considered valid. Will be added in Jira.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions