pan><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre></div></details> <p>通过上面示例代码，主要步骤如下：</p> <p>1、通过<code>@Autowired</code>注解引入<code>Knife4j</code>向Spring容器注入的Bean对象<code>OpenApiExtensionResolver</code></p> <p>2、最终在<code>Dcoket</code>对象构建后，通过调用<code>