Framework
Server infrastructure. Independent of Admin and Generate.
coco-frameworkServer infrastructure for Spring Boot
One Starter connects responses, exception handling and TraceId. Choose data, reliability and platform features as needed. Your business code stays ordinary Java and Spring.
<dependency>
<groupId>io.github.patton174</groupId>
<artifactId>coco-spring-boot-starter</artifactId>
</dependency>
# features are opt-in
coco:
idempotency:
enabled: true
@CocoIdempotent(namespace = "orders")
OrderResponse create(@RequestBody CreateOrder cmd) {
return orders.create(cmd);
}
Add the Starter
Explicit defaults, documented boundaries and clear replacement points.
Feature switches and configurationConsistent behavior on every endpoint
Isolation lives in the query path
Limits for hot and repeated requests
Shared services that grow with you
Ship only what you need
Controllers stay ordinary Spring code. You own users, organizations, authentication providers and transactions.
Response wrapping, exception handling and TraceId work by default. Databases, Redis, authentication, tenants and other external services still need explicit configuration.
Architecture and boundariesDomain · Controllers · Transactions
One entry point · Auto-configuration
Infrastructure selected for your application
Contracts · Context · Logging
Use coco-parent and add the starter. Choose a version from the release history.
Adjust feature switches in YAML and configure the database or services you need.
Write an ordinary Spring controller and start your Spring Boot application.
Call the endpoint and inspect the response envelope, errors and TraceId.
Admin → Framework at runtime; Generate → business source at development time.
Need help integrating, have a feature in mind, or found a confusing page? Help us make Coco better.
If Coco helps your work, consider starring the project on GitHub.