1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

pass checkstyle plugin

This commit is contained in:
fangjian0423
2019-10-28 16:15:18 +08:00
parent 16e9494487
commit de9b1be4be
16 changed files with 84 additions and 13 deletions

View File

@@ -35,6 +35,9 @@ import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class OssApplication {
/**
* Bucket Name of OSS Example.
*/
public static final String BUCKET_NAME = "spring-cloud-alibaba-test";
public static void main(String[] args) throws URISyntaxException {

View File

@@ -20,14 +20,29 @@ import java.io.Serializable;
public class Order implements Serializable {
/**
* order id.
*/
public long id;
/**
* user id.
*/
public String userId;
/**
* commodity code.
*/
public String commodityCode;
/**
* count.
*/
public int count;
/**
* money.
*/
public int money;
@Override

View File

@@ -20,14 +20,29 @@ import java.io.Serializable;
public class Order implements Serializable {
/**
* id.
*/
public long id;
/**
* user id.
*/
public String userId;
/**
* commodity code.
*/
public String commodityCode;
/**
* count.
*/
public int count;
/**
* money.
*/
public int money;
@Override

View File

@@ -25,7 +25,11 @@ import org.springframework.http.client.ClientHttpRequestExecution;
/**
* @author fangjian
*/
public class ExceptionUtil {
public final class ExceptionUtil {
private ExceptionUtil() {
}
public static SentinelClientHttpResponse handleException(HttpRequest request,
byte[] body, ClientHttpRequestExecution execution, BlockException ex) {

View File

@@ -33,7 +33,7 @@ public class EchoServiceFallback implements EchoService {
}
/**
* 调用服务提供方的输出接口
* 调用服务提供方的输出接口.
* @param str 用户输入
* @return
*/

View File

@@ -33,9 +33,9 @@ import org.springframework.web.bind.annotation.PathVariable;
public interface EchoService {
/**
* 调用服务提供方的输出接口
* 调用服务提供方的输出接口.
* @param str 用户输入
* @return
* @return echo result
*/
@GetMapping("/echo/{str}")
String echo(@PathVariable("str") String str);

View File

@@ -65,7 +65,7 @@ public class RocketMQBusApplication {
private ObjectMapper objectMapper;
/**
* Publish the {@link UserRemoteApplicationEvent}
* Publish the {@link UserRemoteApplicationEvent}.
* @param name the user name
* @param destination the destination
* @return If published
@@ -82,7 +82,7 @@ public class RocketMQBusApplication {
}
/**
* Listener on the {@link UserRemoteApplicationEvent}
* Listener on the {@link UserRemoteApplicationEvent}.
* @param event {@link UserRemoteApplicationEvent}
*/
@EventListener