TongchengOpenSource / smart-doc

Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.
https://smart-doc-group.github.io/#/
Apache License 2.0
1.43k stars 278 forks source link

When using encoders to specify only one class, the write encoders = MessageResponseEncoder.class does not resolve the response parameters. #901

Closed shalousun closed 3 months ago

shalousun commented 3 months ago

Contact Details

No response

Version

3.0.7

Plugin

smart-doc-maven-plugin

Build tool version

3.8.6

Jdk version

17

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

When using encoders to specify only one class, the write encoders = MessageResponseEncoder.class does not resolve the response parameters.

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

Can Resolve Normally

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

When using encoders to specify only one class, the write encoders = MessageResponseEncoder.class does not resolve the response parameters.

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

Test Code Example

@ServerEndpoint(value = "/ws/chat/{userId}",
        decoders = MessageDecoder.class,
        encoders = MessageResponseEncoder.class)
public class ChatEndpoint {

}

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

No response

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

No response

Validations