mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
close #816
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* Copyright (C) 2018 the original author or authors.
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -32,16 +31,16 @@ import org.springframework.context.annotation.Bean;
|
||||
@EnableConfigServer
|
||||
public class NacosConfigServerBootstrap {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("nacos.standalone", "true");
|
||||
SpringApplication.run(NacosConfigServerBootstrap.class);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("nacos.standalone", "true");
|
||||
SpringApplication.run(NacosConfigServerBootstrap.class);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public ApplicationRunner applicationRunner() {
|
||||
@Bean
|
||||
public ApplicationRunner applicationRunner() {
|
||||
|
||||
return args -> {
|
||||
System.out.println("Running...");
|
||||
};
|
||||
}
|
||||
return args -> {
|
||||
System.out.println("Running...");
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user