Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Generate Solon HTML file error #1136

Description

@853103174

Contact Details

No response

Version

3.1.2

Plugin

smart-doc-maven-plugin

Build tool version

3.1.2

Jdk version

21

Describe the bug (Bug描述,社区已开启国际化推广,请用千问、星火等免费大模型工具辅助翻译成英文,减少社区开发者的工作)

solon-3.6.0
Directly using the smart doc module in the Maven plugin directory in IDEA results in the above error, which has been present since 3.0.7

Expected Behavior (您期望的结果,社区已开启国际化推广,请用千问、星火等免费大模型工具辅助翻译成英文,减少社区开发者的工作)

The correct output of the document is compatible with Solon class level annotations. The following code cannot recognize post requests, and if it recognizes post requests in JSON format

@Post
@Valid
@Controller
@Mapping("/cmd/user")
public class UserCmdExe {

	@Inject
	private UserCmdSvc service;

	/**
	 * 保存用户信息
	 *
	 * @param bo
	 * 		保存用户信息的业务类
	 */
	@Mapping("/upsert")
	public void upsert(@Validated UserUpsertBO bo) {
		service.upsert(bo);
	}

}

Current Behavior (当前结果,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

java.lang.NullPointerException: Cannot invoke "com.ly.doc.model.annotation.RequestPartAnnotation.getAnnotationName()" because the return value of "com.ly.doc.model.annotation.FrameworkAnnotations.getRequestPartAnnotation()" is null

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码。社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

solon-3.6.0
Directly using the smart doc module in the Maven plugin directory in IDEA results in the above error, which has been present since 3.0.7

Possible Solution (Bug解决建议,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

No response

Context (Bug影响描述,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

No response

Validations

  • Check if you're on the latest smart-doc version. (请检查是否为最新版本)
  • Read the docs. (请先阅读官方文档)
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. (检查是否存在报告相同错误的问题,以避免产生重复)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions