This commit is contained in:
Francesco 2023-11-10 15:13:29 +01:00
parent 4a5129c1fd
commit fefb803a4a

View File

@ -53,7 +53,7 @@ The code is still in a very early stage and it might not be robust if you use no
<dependency> <dependency>
<groupId>tech.ailef</groupId> <groupId>tech.ailef</groupId>
<artifactId>snap-admin</artifactId> <artifactId>snap-admin</artifactId>
<version>0.1.9</version> <version>0.2.0</version>
</dependency> </dependency>
``` ```
@ -64,6 +64,9 @@ a sample database and already configured code.
Otherwise, go ahead and add these to your `application.properties` file: Otherwise, go ahead and add these to your `application.properties` file:
```properties ```properties
## SnapAdmin is not enabled by default
snapadmin.enabled=true
## The first-level part of the URL path: http://localhost:8080/${baseUrl}/ ## The first-level part of the URL path: http://localhost:8080/${baseUrl}/
snapadmin.baseUrl=admin snapadmin.baseUrl=admin
@ -75,10 +78,10 @@ snapadmin.modelsPackage=your.models.package,your.second.models.package
# spring.jpa.open-in-view=true # spring.jpa.open-in-view=true
## OPTIONAL PARAMETERS ## OPTIONAL PARAMETERS
## Whether to enable SnapAdmin ## Whether to enable SnapAdmin
# snapadmin.enabled=true # snapadmin.enabled=true
# #
#
## Set to true if you need to run the tests, as it will customize ## Set to true if you need to run the tests, as it will customize
## the database configuration for the internal DataSource ## the database configuration for the internal DataSource
# snapadmin.testMode=false # snapadmin.testMode=false
@ -87,7 +90,7 @@ snapadmin.modelsPackage=your.models.package,your.second.models.package
# snapadmin.sqlConsoleEnabled=false # snapadmin.sqlConsoleEnabled=false
``` ```
**IMPORTANT**: The configuration prefix `dbadmin.` will change to `snapadmin.` starting from version 0.2.0, as part of the project being renamed. Remember to update your configuration files accordingly. **IMPORTANT**: The configuration prefix `dbadmin.` has been changed to `snapadmin.` starting from version 0.2.0, as part of the project being renamed. Remember to update your configuration files accordingly if you were already using SnapAdmin <= 0.1.9.
Now annotate your `@SpringBootApplication` class containing the `main` method with the following: Now annotate your `@SpringBootApplication` class containing the `main` method with the following: