File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
moss-web/src/main/java/org/xujin/moss Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 10
10
import org .springframework .boot .web .server .ConfigurableWebServerFactory ;
11
11
import org .springframework .boot .web .server .ErrorPage ;
12
12
import org .springframework .boot .web .server .WebServerFactoryCustomizer ;
13
+ import org .springframework .cloud .client .discovery .EnableDiscoveryClient ;
13
14
import org .springframework .context .annotation .Bean ;
14
15
import org .springframework .context .annotation .ComponentScan ;
15
16
import org .springframework .context .annotation .Configuration ;
25
26
@ EnableAutoConfiguration
26
27
@ EnableAdminServer
27
28
//@EnableScheduling
29
+ /**
30
+ * 单nacos或单eureka需要把@EnableDiscoveryClient注释打开
31
+ */
32
+ //@EnableDiscoveryClient
28
33
@ ComponentScan ("org.xujin.moss.*" )
29
34
public class MossApplication {
30
35
You can’t perform that action at this time.
0 commit comments