Skip to content

qlefevre/crud-admin-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crud-admin-spring-boot-starter

Maven Central build

Installation

To use the latest release of crud-admin-spring-boot-starter, please use the following snippet in your pom.xml.

<dependency>
    <groupId>com.github.qlefevre</groupId>
    <artifactId>crud-admin-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>

Features

Supported Types for annotation @Id :

  • String
  • Long
  • Integer

Supported Types for persistent field (@Column) :

  • String
  • Long, Integer, Short, Byte, Float, Double
  • Boolean
  • Enum
  • Date

Input spinner components used for numbers can be controlled with the folling annotations:

  • minimal value with @Min or @Range
  • maximum value with @Max or @Range
  • decimals with @Column(scale=2) for value like 1.00

Date format used is "yyyy-MM-dd HH:mm:ss"

Add the following properties to your application.properties to change the behavior:

# Enable / Disable module
crudadmin.enabled=true
# Admin URL path
crudadmin.url=admin
# Default page size
crudadmin.defaultpagesize=10
# Edit template name
crudadmin.templateedit=adminedit
# List template name
crudadmin.templatelist=adminlist  
# View template name
crudadmin.templateview=adminview
# Class to instantiate for custom ObjectIdSerializer
crudadmin.objectidserializer=com.package.CustomCrudAdminObjectIdSerializer