Server boilerplate

Spring

Source code
A starter repo for Spring, using Fern

Latest version: 0.7.1

The Spring generator generates types and networking logic for your Spring server. This saves you time and add compile-time safety that you are serving the exact API that you specified in your API Definition.

Available on the open source plan.

What Fern generates

  • Java classes for your API types
  • Exceptions that you can throw for non-200 responses
  • Abstract classes for you to define your business logic
  • All the networking/HTTP logic to call your API

Adding the Java generator

1
2
3
4
5
- name: fernapi/fern-java-spring
  version: 0.7.1
  output:
    location: local-file-system
    path: ../generated/server-boilerplate/java