Skip to content

Commit

Permalink
示例:配置中心采用数据库存储
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc87112 committed Jun 5, 2018
1 parent b5ca374 commit 925fb76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.didispace.config.client;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -11,7 +11,7 @@
public class ConfigClientApplication {

public static void main(String[] args) {
new SpringApplicationBuilder(ConfigClientApplication.class).web(true).run(args);
SpringApplication.run(ConfigClientApplication.class);
}

@RefreshScope
Expand Down

0 comments on commit 925fb76

Please sign in to comment.