没有什么区别,都是将自己的服务注册到eureka中,并且每个微服务都集成Swagger的配置</p> <div class="language-java extra-class"><pre class="language-java"><code><span class="token annotation punctuation">@EnableEurekaClient</span>
<span class="token annotation punctuation">@SpringBootApplication</span>
<span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">ServiceUserApplication</span> <span class="token punctuation">{</span>