Release 2.2.5

This commit is contained in:
shalousun 2021-08-28 12:45:47 +08:00
parent c6db6a8f4d
commit a433860946
3 changed files with 22 additions and 10 deletions

View File

@ -1,5 +1,13 @@
## smart-doc版本 ## smart-doc版本
#### 版本号2.2.5
- 更新日期: 2021-08-08
- 更新内容:
1. 支持在html文档中不显示参数列表。
2. html文档使用的资源全部改成本地引用。
3. 修复Boolean类型字段命名为is前缀时is前缀被去除的bug。
4. 修复配置了字典码列表后枚举字段注释显示错误#139 。
5. 修复分析过程中出现的数组越界异常 。
6. 新增接口分组支持。
#### 版本号2.2.4 #### 版本号2.2.4
- 更新日期: 2021-08-08 - 更新日期: 2021-08-08

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>smart-doc</artifactId> <artifactId>smart-doc</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>2.2.4</version> <version>2.2.5</version>
<name>smart-doc</name> <name>smart-doc</name>
<url>https://github.com/smart-doc-group/smart-doc.git</url> <url>https://github.com/smart-doc-group/smart-doc.git</url>
@ -34,19 +34,18 @@
</developers> </developers>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<flexmark.version>0.62.2</flexmark.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.13.1</version> <version>4.13.2</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.ibeetl</groupId> <groupId>com.ibeetl</groupId>
<artifactId>beetl</artifactId> <artifactId>beetl</artifactId>
<version>3.3.2.RELEASE</version> <version>3.5.1.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.thoughtworks.qdox</groupId> <groupId>com.thoughtworks.qdox</groupId>

View File

@ -227,9 +227,13 @@ public class DocUtil {
} }
String[] patterns = packageFilters.split(","); String[] patterns = packageFilters.split(",");
for (String str : patterns) { for (String str : patterns) {
Pattern pattern = Pattern.compile(str); if (str.contains("*")) {
if (pattern.matcher(controllerName).matches()) { Pattern pattern = Pattern.compile(str);
return true; if (pattern.matcher(controllerName).matches()) {
return true;
}
} else {
return controllerName.startsWith(str);
} }
} }
return false; return false;
@ -288,8 +292,9 @@ public class DocUtil {
} }
/** /**
* // /detail/{id:[a-zA-Z0-9]{3}}/{name:[a-zA-Z0-9]{3}} * // /detail/{id:[a-zA-Z0-9]{3}}/{name:[a-zA-Z0-9]{3}}
* 去除正则表达式 * 去除正则表达式
*
* @param str * @param str
* @return * @return
*/ */