release:release 1.6.0-2020.0.5. (#408)

pull/409/head 1.6.0-2020.0.5
Haotian Zhang 2 years ago committed by GitHub
parent 4d18a67e6d
commit 2f45dd0961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,7 +86,7 @@
<properties>
<!-- Project revision -->
<revision>1.6.0-2020.0.5-SNAPSHOT</revision>
<revision>1.6.0-2020.0.5</revision>
<!-- Spring Cloud -->
<spring.cloud.version>2020.0.5</spring.cloud.version>

@ -70,10 +70,10 @@
</developers>
<properties>
<revision>1.6.0-2020.0.5-SNAPSHOT</revision>
<revision>1.6.0-2020.0.5</revision>
<!-- Dependencies -->
<polaris.version>1.7.0-SNAPSHOT</polaris.version>
<polaris.version>1.7.0</polaris.version>
<logback.version>1.2.11</logback.version>
<mocktio.version>4.5.1</mocktio.version>
<byte-buddy.version>1.12.10</byte-buddy.version>

@ -46,24 +46,28 @@ public class BusinessController {
private static final Logger LOG = LoggerFactory.getLogger(BusinessController.class);
private final AtomicInteger index = new AtomicInteger(0);
private final AtomicLong lastTimestamp = new AtomicLong(0);
@Autowired
private RestTemplate restTemplate;
@Value("${spring.application.name}")
private String appName;
private AtomicLong lastTimestamp = new AtomicLong(0);
/**
* Get information.
*
* @return information
*/
@RequestMapping("/info")
@GetMapping("/info")
public String info() {
return "hello world for ratelimit service " + index.incrementAndGet();
}
/**
* Get information 30 times per 1 second.
*
* @return result of 30 calls.
* @throws InterruptedException exception
*/
@GetMapping("/invoke")
public String invokeInfo() throws InterruptedException {
StringBuffer builder = new StringBuffer();
@ -92,6 +96,7 @@ public class BusinessController {
/**
* Get information with unirate.
*
* @return information
*/
@GetMapping("/unirate")

Loading…
Cancel
Save