check style

(cherry picked from commit edff904489)
pull/2597/head
lixiaoshuang 3 years ago committed by chengpu.rzh
parent 04a55e4790
commit 983f7a7b1d

@ -16,7 +16,6 @@
package com.alibaba.cloud.examples.example;
import com.alibaba.cloud.nacos.NacosConfigManager;
import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.listener.Listener;
@ -55,7 +54,8 @@ public class ConfigListenerExample {
@Override
public void receiveConfigInfo(String configInfo) {
System.out.println("[dataId]:[" + DATA_ID + "],Configuration changed to:" + configInfo);
System.out.println("[dataId]:[" + DATA_ID + "],Configuration changed to:"
+ configInfo);
}
});
}

@ -52,7 +52,8 @@ public class DockingInterfaceExample {
*/
@RequestMapping("getConfig")
public String getConfig(@RequestParam("dataId") String dataId,
@RequestParam(value = "group", required = false) String group) throws NacosException {
@RequestParam(value = "group", required = false) String group)
throws NacosException {
if (StringUtils.isEmpty(group)) {
group = DEFAULT_GROUP;
}
@ -71,8 +72,8 @@ public class DockingInterfaceExample {
*/
@RequestMapping("publishConfig")
public boolean publishConfig(@RequestParam("dataId") String dataId,
@RequestParam(value = "group", required = false) String group, @RequestParam("content") String content)
throws NacosException {
@RequestParam(value = "group", required = false) String group,
@RequestParam("content") String content) throws NacosException {
if (StringUtils.isEmpty(group)) {
group = DEFAULT_GROUP;
}
@ -90,7 +91,8 @@ public class DockingInterfaceExample {
*/
@RequestMapping("remoteConfig")
public boolean remoteConfig(@RequestParam("dataId") String dataId,
@RequestParam(value = "group", required = false) String group) throws NacosException {
@RequestParam(value = "group", required = false) String group)
throws NacosException {
if (StringUtils.isEmpty(group)) {
group = DEFAULT_GROUP;
}
@ -107,7 +109,8 @@ public class DockingInterfaceExample {
*/
@RequestMapping("listener")
public String listenerConfig(@RequestParam("dataId") String dataId,
@RequestParam(value = "group", required = false) String group) throws NacosException {
@RequestParam(value = "group", required = false) String group)
throws NacosException {
if (StringUtils.isEmpty(group)) {
group = DEFAULT_GROUP;
}

Loading…
Cancel
Save