Skip to content

Commit

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

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

}
12 changes: 12 additions & 0 deletions src/main/java/com/sachin/eureka/SachinConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.sachin.eureka;

/**
* @Author Sachin
* @Date 2020/9/22
**/
public class SachinConfig {

private String name;
private String address;

}

0 comments on commit a235bb9

Please sign in to comment.