A powerful, automatically-generated database management panel for Spring Boot®/JPA applications
SnapAdmin saves you time by providing a full-fledged database management interface so you can focus on what matters. It won't be necessary to modify your codebase: SnapAdmin scans your code and builds everything at runtime.
Complete CRUD features for all entities and their associations, with out-of-the-box support for JPA validation constraints and multiple field types.
Customize SnapAdmin by applying annotations to your classes, methods and fields. You can apply custom formatting and naming, create custom columns and more.
With SnapAdmin you also get: audit logs for write operations, advanced filtering & search, data export (CSV, XLSX, JSONL) and an SQL console to run and save frequent queries.
You can get started with SnapAdmin in less than 3 minutes by following these steps.
SnapAdmin is distributed on Maven: just add the following to your pom.xml
file.
<dependency>
<groupId>tech.ailef</groupId>
<artifactId>snap-admin</artifactId>
<version>0.2.1</version>
</dependency>
Add the minimum required properties to your application.properties
file.
# SnapAdmin is not enabled by default
snapadmin.enabled=true
# the root path of all SnapAdmin routes
snapadmin.baseUrl=admin
# comma-separated list of packages to scan for @Entity classes
snapadmin.modelsPackage=your.models.package
Add the following at the top of your @SpringBootApplication
class to enable SnapAdmin AutoConfiguration.
@ImportAutoConfiguration(SnapAdminAutoConfiguration.class)
Head over to the Github README or the Reference Guide for more detailed instructions.
Here's what some of our users say about SnapAdmin. You can leave your comment, too!
fabienfleureau
Hello, Thanks for you project. I use it an hidden admin page, mostly as if it is a direct connection to database. It would be nice to able to run custom queries.
parsaM110
I recently came across Snap Admin, and I must say it's a very interesting project! Coming from a Django background, I always wondered why there wasn't a robust ecosystem like Django Admin in the Spring world. After discovering that Spring Roo was no longer supported by VMware, I found your project and was genuinely impressed.
Keep up the great work!