Skip to content

Commit

Permalink
sachin modify EurekaServerApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJRui committed Sep 22, 2020
1 parent a235bb9 commit af792a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/com/sachin/eureka/EurekaServerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ public class EurekaServerApplication {

public static void main(String[] args) {
WebApplicationType type = WebApplicationType.SERVLET;
new SpringApplicationBuilder(EurekaServerApplication.class).web(type).run(args);
SpringApplicationBuilder builder=new SpringApplicationBuilder(EurekaServerApplication.class);

SpringApplicationBuilder web = builder.web(type);
web.run(args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
* @Date 2020/9/19
**/
@Configuration
public class ServerConfig {
public class ServerConfigBean {
}

0 comments on commit af792a1

Please sign in to comment.