Skip to content

Commit 84e125b

Browse files
committed
ok
1 parent 1874fc1 commit 84e125b

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

README.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,20 @@ Support for grayscale publishing of functions, service downgrade, Automated oper
2121
**_ServiceApplication_**
2222

2323
```
24-
package com.github.xincao9.jswitcher.sample;
25-
26-
import com.github.xincao9.jswitcher.api.service.SwitcherService;
27-
import com.github.xincao9.jswitcher.api.vo.QoS;
28-
import com.github.xincao9.jswitcher.spring.boot.starter.EnableJswitcher;
29-
import java.util.concurrent.TimeUnit;
30-
import org.apache.commons.lang3.RandomStringUtils;
31-
import org.slf4j.Logger;
32-
import org.slf4j.LoggerFactory;
33-
import org.springframework.beans.factory.annotation.Autowired;
34-
import org.springframework.boot.CommandLineRunner;
35-
import org.springframework.boot.SpringApplication;
36-
import org.springframework.boot.autoconfigure.SpringBootApplication;
37-
import org.springframework.context.annotation.Bean;
38-
3924
/**
40-
* Service Application
41-
*
25+
* 输出随机字符串
26+
*
4227
* @author xincao9@gmail.com
4328
*/
29+
@RestController
30+
public class RootController {
31+
32+
@GetMapping("/")
33+
public ResponseEntity<String> root () {
34+
return ResponseEntity.ok(RandomStringUtils.randomAscii(128));
35+
}
36+
}
37+
4438
@SpringBootApplication
4539
@EnableJswitcher
4640
public class ServiceApplication {

0 commit comments

Comments
 (0)