Smalldoc was last released as 2.3.1. 2.3.2 was in the works from October 2019, but 2.3.2 was not delivered in time for two reasons

  1. When an old man dies, he returns home to observe his filial piety
  2. In the new UI implementation, met AntdV3 originally, there is a bug in the design, leading to the realization of this code obstacle, but don’t want to give up thought UI effect, obsessive-compulsive disorder, and although the labor is a back-end development, or go to the source of AntdV3 realized their own solutions, and write a summary”Ant-design Table component when the row height of the scrolling column changes, the row height of the fixed column will not change synchronously, or the scrolling column changes unchanged, resulting in layout destruction.”But after all, it is not copied from the source level, so there are defects in rendering speed — when the data volume is large, there will be visible lag. Fortunately, the first available version of AntdV4 came out two days after I implemented the solutionAntd 4.0.0 - rc. 0AntdV4 overturns the original design of antdV3, reimplements the code, fundamentally solves bugs like this, greatly improves the rendering speed of ANTD components, and thus greatly improves smallDoc’S UI!

Due to the delay in the release of smalldoc 2.3.2, the author made a complete upgrade to SmallDoc based on issues supporters’ concerns and recommendations. The update log is as follows…

Update log

  • More powerful parameter configuration syntax, make interface document presentation more user-friendlyTo enhance;# 8
  • Added menu bar ability to select documents based on fully qualified name of package or comment information in package-infoTo enhance;# 7
  • Compatible with UNIX systems, such as Mac OS (the author bought a Mac 😂 for this purpose)To enhance;# 7
  • Added interface parameter sample value inferenceTo enhance;# 14
  • Integrated API testing capabilitiesTo enhance;# 14
  • A configurable resolution class name that supports regular matchingTo enhance;# 9
  • Optimized presentation of collection fields within returned parameter entitiesTo enhance;# 15
  • Repair theTypeVariableisTypeArgumentCannot resolve an error in the following formatrepair # 15
     @RequestMapping("test")
     public Result<PageResult<List<TestBean>>> test(String s);
    Copy the code
  • Updated UI to antdV4, fixed component rendering bug, greatly improved rendering speedTo enhance;
  • Fixed stack overflow caused by loop application when UI rendering returns parameter listrepair;# 15
  • Fixed data errors caused by loop reference detection being turned on by default in the backend JSON libraryrepair;# 15
  • Added set parameters (Set.List1. Set parameters cannot be entity parameters; 2. Set parameters should be annotated@RequestParam, the following is the correct way to use)To enhance # 15
     @RequestMapping("test")
     public Result<Long> test(@RequestParam List<String> ss);
    Copy the code
  • Removed unreasonable execution logic (e.g., taking entity sets directly as input arguments to interface methods, as shown in the incorrect usage)To enhance # 15
    @RequestMapping("test")
    public Result<Long> test(List<TestBean> testBeans);
    Copy the code
  • Explicitly resets the state of UI components to reduce due toReact difference algorithmResulting in an undesirable rendering effectTo enhance;
  • Modified the data rendering method (see today’s headline article, to ensure both front and back end separation, and SEO, can generate offline documents);

use

<dependency>
    <groupId>com.github.liuhuagui</groupId>
    <artifactId>smalldoc-spring-boot-starter</artifactId>
    <version>2.4</version>
</dependency>
Copy the code