Skip to main content

Announcing Spring Boot 4.1.0 and Java 21 Support in TeaQL

· 2 min read
TeaQL Team
Core Team

We are excited to announce that TeaQL's code generation engine has been fully upgraded to support the newly released Spring Boot 4.1.0, officially raising our Java baseline to Java 21.

This update ensures that any project generated with the java-web-spring-boot target will out-of-the-box leverage the modern Spring ecosystem, providing an even more robust and observable runtime for your business APIs.

Embracing Java 21

With this release, TeaQL leaves Java 17 behind and fully embraces Java 21 as the baseline for both java-lib-core and the generated Spring Boot projects. This alignment allows your generated code and custom extensions to seamlessly utilize modern Java features like Virtual Threads (Project Loom), Pattern Matching, and Record patterns.

What's New with Spring Boot 4.1 Integration

Spring Boot 4.1.0 brings a host of powerful new features, and the TeaQL runtime has been validated to work perfectly alongside them:

Native gRPC Support

Spring Boot 4.1 introduces native gRPC auto-configuration for both client and server applications. If you are extending your TeaQL-generated application with gRPC services, you can now use @GrpcAdvice for centralized exception handling and unified observation conventions without relying on third-party starter dependencies.

Enhanced Security with SSRF Mitigation

The new HTTP client Server-Side Request Forgery (SSRF) mitigation via InetAddressFilter is now available to your TeaQL applications. This provides an additional layer of security by allowing strict whitelisting and blacklisting of address ranges for outbound requests.

Advanced Observability

The updated OpenTelemetry support in Spring Boot 4.1 seamlessly integrates with TeaQL's generated API boundaries. Your generated queries, aggregations, and graph mutation operations can now be monitored with even greater precision.

Try It Out

You don't need to learn a new DSL or update your domain models to take advantage of this upgrade. Simply regenerate your project using the java-web-spring-boot target, and your new project structure and pom.xml will be automatically provisioned with Spring Boot 4.1.0 and Java 21.

Here is what your generated POM properties will look like:

<properties>
<java.version>21</java.version>
<spring-boot.version>4.1.0</spring-boot.version>
<!-- ... -->
</properties>

We remain committed to keeping TeaQL's output aligned with the industry's best practices and latest stable frameworks. Happy generating!