ass="token punctuation">}</span>


<span class="token punctuation">}</span>
</code></pre></div><p>配置扫描目录包</p> <p>通过<code>@EnableSwagger2</code>和<code>@EnableSwaggerBootstrapUi</code>来开启swagger和增强特性</p> <p>配置项目的<code>application.yml</code>文件,如下：</p> <div class="language-java extra-class"><pre class="language-java"><code>server<span class="token operator">:</span>
  port<span class="token operator">:</span> <span class="token number">10001</span>
spring<