Enterprise-level rapid development framework nbsaas-boot 1.1.3-2023 released

<parent>
     <groupId>com.nbsaas.boot</groupId>
     <artifactId>nbsaas-boot</artifactId>
     <version>1.1.3-2023</version>
</parent>

Contents of this update

1. Upgrade spring-boot version and shiro version 1.13.0

2. Add SearchData annotation to facilitate data interception through aop when searching.

3. Add the attribute to control whether the operation area displays

4. Added ExtResourceCommand to generate the extension module folder when processing generated code.

5. The search module supports or conditional search.

6. Modify the extraction of model data through annotations.

nbsaas-boot has the following characteristics:

Automatic table creation: nbsaas-boot provides an automatic table creation function, which automatically generates database table structures based on user-defined data models, reducing manual operations and improving development efficiency.

Development specifications: nbsaas-boot provides a set of development specifications, including coding style, naming specifications, annotation specifications, etc., to make team development more standardized and efficient.

Code generator: nbsaas-boot provides a code generator that automatically generates front-end and back-end code based on the data model to improve development efficiency and code quality.

Multi-tenant support: nbsaas-boot supports multi-tenancy, providing independent data storage space and access rights for different customers to ensure data security and isolation.

Handle complex business through Command

InputRequestObject context = new InputRequestObject();
context.setConfig(config);
context.setFormBean(formBean);

 

    new DomainCommand()
        .after(new ApiCommand())
        .after(new ConvertCommand())
        .after(new ControllerFrontCommand())
        .after(new RestCommand())
        .after(new ExtApiCommand())
        .after(new RepositoryCommand())
        .after(new FieldCommand())
        .after(new FinishCommand()).execute(context);

Model building

@CatalogClass
@FormAnnotation(title = "组织架构管理", model = "组织架构", menu = "1,27,88")
@Data
@Entity
@Table(name = "sys_structure")
public class Structure extends CatalogEntity {

    @FormField(title = "父分类名称")
    @Comment("父分id")
    @FieldName
    @FieldConvert(classType = "Integer")
    @ManyToOne(fetch = FetchType.LAZY)
    private Structure parent;

    @OneToMany(fetch = FetchType.LAZY, mappedBy = "parent")
    private List<Structure> children;

}

Extract model data, and then generate back-end code + vue3 back-end management code through the code generator

Basic function project https://gitee.com/cng1985/nbsaas-boot-starter
project scaffolding https://gitee.com/cng1985/nbsaas-admin
vue3 background management scaffolding https://gitee.com/cng1985/nbsaas-admin -vue3

Guess you like

Origin www.oschina.net/news/267394/nbsaas-boot-1-1-3-2023